From 85149add6150cc925c558a3e6e422e1fc1eceec0 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 20 Oct 2016 22:03:23 +0200 Subject: [PATCH] [index] Fixes a bug where requests could result in same cache file names Previously the cache file name was only build upon bridge parameters. If two bridges don't make use of any parameter this would result into equal file names. --- index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index fba21678..966f30b9 100644 --- a/index.php +++ b/index.php @@ -125,18 +125,18 @@ try { define('NOPROXY',true); } - $params = $_GET; - unset($params['action']); - unset($params['bridge']); - unset($params['format']); - unset($params['_noproxy']); - // Initialize cache $cache = Cache::create('FileCache'); $cache->setPath(CACHE_DIR); $cache->purgeCache(86400); // 24 hours $cache->setParameters($params); + $params = $_GET; + unset($params['action']); + unset($params['bridge']); + unset($params['format']); + unset($params['_noproxy']); + // Load cache & data $bridge->setCache($cache); $bridge->setDatas($params);