From a79ddb8238e5a116c8e196e5508d6361c2a0eeb4 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 17 Feb 2022 10:44:13 +0100 Subject: [PATCH] wait #5084 @0.25 --- src/CommandLine/Poppler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandLine/Poppler.php b/src/CommandLine/Poppler.php index 20e30a9..7698b73 100644 --- a/src/CommandLine/Poppler.php +++ b/src/CommandLine/Poppler.php @@ -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)) { -- 2.39.5