]> _ Git - cubist_util.git/commitdiff
#7894 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 11:54:16 +0000 (12:54 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 11:54:16 +0000 (12:54 +0100)
src/CommandLine/Docling.php

index 91af002f87eb70a7ca07ff6a7218d6660a3e0d0a..af47db01d76a97b1f1e7b88154c66954aac2a07d 100644 (file)
@@ -52,6 +52,6 @@ class Docling extends CommandLine
     public static function isCached($image, $locale = null)
     {
         $out = self::cache($image, $locale);
-        return file_exists($out) && filemtime($out) > filemtime($image);
+        return file_exists($out) && filemtime($out) > filemtime($image) && filesize($out) > 0;
     }
 }
\ No newline at end of file