} else if (!is_null($compiler) && Url::isLocal($data->to)) {
$path = file_exists($data->to) ? $data->to : $compiler->wdir . '/' . $data->to;
- $dim = Cache::get('videosize_' . Files::hashFileAttributes($path), function () use ($path) {
+ $dim = Cache::remember('videosize_' . Files::hashFileAttributes($path), 86400, function () use ($path) {
$e = explode(',', `ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 $path`);
$res = ['width' => 1920, 'height' => 1080];
if (count($e) > 1) {