mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 16:17:28 +02:00
fix(CacheInterface): logic bug in getTime (#3491)
* fix(CacheInterface): logic bug in getTime * test
This commit is contained in:
@@ -432,8 +432,8 @@ function getSimpleHTMLDOMCached(
|
||||
// Determine if cached file is within duration
|
||||
$time = $cache->getTime();
|
||||
if (
|
||||
$time !== false
|
||||
&& (time() - $duration < $time)
|
||||
$time
|
||||
&& time() - $duration < $time
|
||||
&& !Debug::isEnabled()
|
||||
) {
|
||||
// Contents within duration and debug mode is disabled
|
||||
|
Reference in New Issue
Block a user