1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

[contents.php] Fix logical error in getSimpleHTMLDOMCached function (#1974)

Previously content was only loaded from cache when debug mode was enabled (the opposite of the expected behavior)
This commit is contained in:
Thomas
2021-02-09 13:40:16 +01:00
committed by GitHub
parent 809343ed06
commit 771b851b52

View File

@@ -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);