GET flag to skip cache

This commit is contained in:
Shish 2019-07-07 10:26:31 +01:00
parent f4a98e7a9b
commit b01f425a55

View file

@ -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") {