From 978e5cdbf5b3554bc7bf2b950c2af01df06d3304 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 2 Oct 2016 16:43:08 +0200 Subject: [PATCH] [index] Define cache even in DEBUG mode --- index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index c8ef051..45a0657 100644 --- a/index.php +++ b/index.php @@ -116,12 +116,11 @@ try { die; } - $cache = Cache::create('FileCache'); - // Data retrieval $bridge = Bridge::create($bridge); - if(!defined("DEBUG")) - $bridge->setCache($cache); + + $cache = Cache::create('FileCache'); + $bridge->setCache($cache); $noproxy = filter_input(INPUT_GET, '_noproxy', FILTER_VALIDATE_BOOLEAN); if(defined('PROXY_URL') && PROXY_BYBRIDGE && $noproxy){