GET flag to skip cache
This commit is contained in:
parent
f4a98e7a9b
commit
b01f425a55
1 changed files with 1 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Reference in a new issue