[BridgeAbstract] Don't load cache file in DEBUG mode
This commit is contained in:
parent
978e5cdbf5
commit
b0784e5a42
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
if(!is_null($this->cache)){
|
||||
$this->cache->prepare($inputs);
|
||||
$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();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue