Commit d83fdd7f authored by Robin McCorkell's avatar Robin McCorkell
Browse files

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

HHVM: Add workaround for missing Memcached::deleteMulti()
parents 82f87269 fcf3c519
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment