Merge pull request #6610 from owncloud/apcu-clear

Fix APCIterator syntax in \OC\Memcache\APCu::clear
This commit is contained in:
icewind1991 2014-01-03 05:30:49 -08:00
commit f016a3ead3

View file

@ -12,7 +12,7 @@ class APCu extends APC {
public function clear($prefix = '') {
$ns = $this->getNamespace() . $prefix;
$ns = preg_quote($ns, '/');
$iter = new \APCIterator('/^'.$ns.'/');
$iter = new \APCIterator('user', '/^'.$ns.'/');
return apc_delete($iter);
}