From c4f7e9404401de1f0a5ce9037cb8f11570130b5b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 15:26:52 +0200 Subject: [PATCH] wip #5184 @0.25 --- src/Links/VideoLink.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Links/VideoLink.php b/src/Links/VideoLink.php index d9f9d87..0c6bebb 100644 --- a/src/Links/VideoLink.php +++ b/src/Links/VideoLink.php @@ -83,7 +83,7 @@ class VideoLink extends Link } 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) { -- 2.39.5