From eb2c0a6636372acc04a1e9d1c76dfe0c34f7d2eb Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 7 Feb 2021 13:38:37 +0100 Subject: [PATCH] [contents.php] Fix logical error in getSimpleHTMLDOMCached function Previously content was only loaded from cache when debug mode was enabled (the opposite of the expected behavior) --- lib/contents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contents.php b/lib/contents.php index 21d81e60f47..797c612530a 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -311,7 +311,7 @@ function getSimpleHTMLDOMCached($url, $time = $cache->getTime(); if($time !== false && (time() - $duration < $time) - && Debug::isEnabled()) { // Contents within duration + && !Debug::isEnabled()) { // Contents within duration $content = $cache->loadData(); } else { // Content not within duration $content = getContents($url, $header, $opts);