Merge pull request #892 from Cirvaazny/patch-1

Update memcache DSN condition matching
This commit is contained in:
Shish
2022-11-14 10:48:34 +00:00
committed by GitHub

View File

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