Merge pull request #12913 from owncloud/hhvm-memcached-clear
HHVM: Add workaround for missing Memcached::deleteMulti()
This commit is contained in:
commit
d83fdd7f9d
|
@ -74,7 +74,13 @@ class Memcached extends Cache {
|
|||
$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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue