]> _ Git - fluidbook_tools.git/commitdiff
wip #5731
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Feb 2023 16:01:20 +0000 (17:01 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 Feb 2023 16:01:20 +0000 (17:01 +0100)
.idea/git_toolbox_prj.xml [new file with mode: 0644]
src/Links/VideoLink.php

diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml
new file mode 100644 (file)
index 0000000..02b915b
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="GitToolBoxProjectSettings">
+    <option name="commitMessageIssueKeyValidationOverride">
+      <BoolValueOverride>
+        <option name="enabled" value="true" />
+      </BoolValueOverride>
+    </option>
+    <option name="commitMessageValidationEnabledOverride">
+      <BoolValueOverride>
+        <option name="enabled" value="true" />
+      </BoolValueOverride>
+    </option>
+  </component>
+</project>
\ No newline at end of file
index 8777a28c76ea1f4364043c034b19d7bf9e4ee616..63061337c8c123273f66fce3f363d19397f847d5 100644 (file)
@@ -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) {