]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix APCIterator syntax in \OC\Memcache\APCU::clear
authorRobin Appelman <icewind@owncloud.com>
Thu, 2 Jan 2014 15:12:56 +0000 (16:12 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 2 Jan 2014 15:12:56 +0000 (16:12 +0100)
see http://www.php.net/manual/en/apciterator.construct.php

lib/private/memcache/apcu.php

index ccc1aa6e5622652d9c43bfaef608bbb8d75472ce..dac0f5f208aaa61f7d56668da870f8dceebad927 100644 (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);
        }