Commit 157ff121 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #12954 from owncloud/hhvm-apc-clear

HHVM: In APC cache clear, only request the cache key in APCIterator.
parents 6b3600d2 0ba5c182
......@@ -32,7 +32,7 @@ class APC extends Cache {
public function clear($prefix = '') {
$ns = $this->getPrefix() . $prefix;
$ns = preg_quote($ns, '/');
$iter = new \APCIterator('user', '/^' . $ns . '/');
$iter = new \APCIterator('user', '/^' . $ns . '/', APC_ITER_KEY);
return apc_delete($iter);
}
......
Markdown is supported
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