HHVM: Add workaround for missing Memcached::deleteMulti()
This commit is contained in:
parent
532ba99f1c
commit
fcf3c5197f
|
@ -74,7 +74,13 @@ class Memcached extends Cache {
|
||||||
$keys[] = $key;
|
$keys[] = $key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::$cache->deleteMulti($keys);
|
if (method_exists(self::$cache, 'deleteMulti')) {
|
||||||
|
self::$cache->deleteMulti($keys);
|
||||||
|
} else {
|
||||||
|
foreach ($keys as $key) {
|
||||||
|
self::$cache->delete($key);
|
||||||
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue