From b0784e5a427417f17fe525a489657a532a6433d1 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 2 Oct 2016 17:00:53 +0200 Subject: [PATCH] [BridgeAbstract] Don't load cache file in DEBUG mode --- lib/BridgeAbstract.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php index 82a1014..2a64832 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; }