From 8b32ab37dfb274d0bd9a58f1b332707602245b97 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 15 Jan 2026 19:34:19 +0100 Subject: [PATCH] wip #7894 @0.25 --- src/CommandLine/Docling.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandLine/Docling.php b/src/CommandLine/Docling.php index 839dd6e..91af002 100644 --- a/src/CommandLine/Docling.php +++ b/src/CommandLine/Docling.php @@ -46,12 +46,12 @@ class Docling extends CommandLine public static function cache($image, $locale = null) { - return $image . '.' . md5($locale??'null') . '.html'; + return $image . '.' . md5($locale ?? 'null') . '.html'; } public static function isCached($image, $locale = null) { $out = self::cache($image, $locale); - return !(!file_exists($out) || filemtime($out) < filemtime($image) || filemtime($out) < filemtime(__FILE__)); + return file_exists($out) && filemtime($out) > filemtime($image); } } \ No newline at end of file -- 2.39.5