fix cache regex

joe/cache-regex-fix
Joe 11 months ago
parent e2970a4d91
commit 000dca9fc0
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
  1. 2
      core/cacheengine.php

@ -141,7 +141,7 @@ class Cache
{
$matches = [];
$c = null;
if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) {
if ($dsn && preg_match('<(.*):\/\/(.*)>', $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) {
if ($matches[1] == "memcached") {
$c = new MemcachedCache($matches[2]);
} elseif ($matches[1] == "apc") {

Loading…
Cancel
Save