summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-19 10:46:20 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-19 10:46:20 +0100
commit157ff1219a2d18ac83d1ff2225fd882083be19a2 (patch)
treeb4c836aed3f5714fafe99ee0debf48fb8e337736
parent6b3600d2bfec565d395746e4814855e616606f7d (diff)
parent0ba5c182f0d4486e4b970fbadfe064a6d1440753 (diff)
downloadnextcloud-server-157ff1219a2d18ac83d1ff2225fd882083be19a2.tar.gz
nextcloud-server-157ff1219a2d18ac83d1ff2225fd882083be19a2.zip
Merge pull request #12954 from owncloud/hhvm-apc-clear
HHVM: In APC cache clear, only request the cache key in APCIterator.
-rw-r--r--lib/private/memcache/apc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/memcache/apc.php b/lib/private/memcache/apc.php
index 332bbfead00..2c0a93db321 100644
--- a/lib/private/memcache/apc.php
+++ b/lib/private/memcache/apc.php
@@ -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);
}