From b01f425a557e2c70e1ba1e3c58fb190d2fec8d55 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 7 Jul 2019 10:26:31 +0100 Subject: [PATCH] GET flag to skip cache --- core/cacheengine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cacheengine.php b/core/cacheengine.php index aa32a4dc..848c4200 100644 --- a/core/cacheengine.php +++ b/core/cacheengine.php @@ -170,7 +170,7 @@ class Cache { $matches = []; $c = null; - if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches)) { + if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) { if ($matches[1] == "memcache") { $c = new MemcacheCache($matches[2]); } elseif ($matches[1] == "memcached") {