HHVM: Add workaround for missing Memcached::deleteMulti()

This commit is contained in:
Andreas Fischer 2014-12-17 18:07:08 +01:00
parent 532ba99f1c
commit fcf3c5197f
1 changed files with 7 additions and 1 deletions

View File

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