Fix APCIterator syntax in \OC\Memcache\APCU::clear
see http://www.php.net/manual/en/apciterator.construct.php
This commit is contained in:
parent
14e0b1b6d1
commit
83f968ace2
|
@ -12,7 +12,7 @@ class APCu extends APC {
|
||||||
public function clear($prefix = '') {
|
public function clear($prefix = '') {
|
||||||
$ns = $this->getNamespace() . $prefix;
|
$ns = $this->getNamespace() . $prefix;
|
||||||
$ns = preg_quote($ns, '/');
|
$ns = preg_quote($ns, '/');
|
||||||
$iter = new \APCIterator('/^'.$ns.'/');
|
$iter = new \APCIterator('user', '/^'.$ns.'/');
|
||||||
return apc_delete($iter);
|
return apc_delete($iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue