diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php index 82a10143..2a648329 100644 --- a/lib/BridgeAbstract.php +++ b/lib/BridgeAbstract.php @@ -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; }