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

HHVM: In APC cache clear, only request the cache key in APCIterator.
remotes/origin/fix-10825
Lukas Reschke 2014-12-19 10:46:20 +07:00
commit 157ff1219a
1 changed files with 1 additions and 1 deletions

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