diff --git a/lib/contents.php b/lib/contents.php index 21d81e60..797c6125 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);