From: Vincent Vanwaelscappel Date: Tue, 14 Feb 2023 16:01:20 +0000 (+0100) Subject: wip #5731 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ca521b372d0240478a13b67165372296da4312ea;p=fluidbook_tools.git wip #5731 --- diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml new file mode 100644 index 0000000..02b915b --- /dev/null +++ b/.idea/git_toolbox_prj.xml @@ -0,0 +1,15 @@ + + + + + + + \ No newline at end of file diff --git a/src/Links/VideoLink.php b/src/Links/VideoLink.php index 8777a28..6306133 100644 --- a/src/Links/VideoLink.php +++ b/src/Links/VideoLink.php @@ -91,7 +91,7 @@ class VideoLink extends Link } else if (!is_null($compiler) && Url::isLocal($data->to)) { $path = file_exists($data->to) ? $data->to : $compiler->working_path($data->to); - $dim = Cache::remember('videosize_' . Files::hashFileAttributes($path), 86400, function () use ($path) { + $dim = Cache::rememberForever('videosize_' . Files::hashFileAttributes($path), 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) {