]> _ Git - cubist_util.git/commitdiff
wait #5084 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 17 Feb 2022 09:44:13 +0000 (10:44 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 17 Feb 2022 09:44:13 +0000 (10:44 +0100)
src/CommandLine/Poppler.php

index 20e30a9e10ecf99a2099cf858c7ecfc01af056b4..7698b73e9f6bc5fc636015820ea6c18816f68098 100644 (file)
@@ -30,10 +30,10 @@ class Poppler
 
         $cacheFile = null;
 
-        Files::mkdir($cache);
 
         if (null !== $cache) {
-            $f = $file . '/' . filemtime($file) . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!';
+            Files::mkdir($cache);
+            $f = hash_file('sha256', $file) . '||' . '++' . json_encode($rect) . '**' . json_encode($options) . '||' . $page . '!!';
             $hash = hash('sha256', $f);
             $cacheFile = $cache . '/' . $hash . '.' . $extension;
             if (file_exists($cacheFile)) {