mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[BridgeAbstract] Don't load cache file in DEBUG mode
This commit is contained in:
parent
978e5cdbf5
commit
b0784e5a42
@ -140,7 +140,9 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||||||
if(!is_null($this->cache)){
|
if(!is_null($this->cache)){
|
||||||
$this->cache->prepare($inputs);
|
$this->cache->prepare($inputs);
|
||||||
$time = $this->cache->getTime();
|
$time = $this->cache->getTime();
|
||||||
if($time !== false && (time() - static::CACHE_TIMEOUT < $time)){
|
if($time !== false
|
||||||
|
&& (time() - static::CACHE_TIMEOUT < $time)
|
||||||
|
&& (!defined('DEBUG') || DEBUG !== true)){
|
||||||
$this->items = $this->cache->loadData();
|
$this->items = $this->cache->loadData();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user