Merge pull request #12913 from owncloud/hhvm-memcached-clear

HHVM: Add workaround for missing Memcached::deleteMulti()
This commit is contained in:
Robin McCorkell 2014-12-18 00:27:07 +00:00
commit d83fdd7f9d
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}