Fix APCIterator syntax in \OC\Memcache\APCU::clear

see http://www.php.net/manual/en/apciterator.construct.php
This commit is contained in:
Robin Appelman 2014-01-02 16:12:56 +01:00
parent 14e0b1b6d1
commit 83f968ace2
1 changed files with 1 additions and 1 deletions

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