diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-12-19 03:24:00 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-12-19 03:24:00 +0100 |
commit | 0ba5c182f0d4486e4b970fbadfe064a6d1440753 (patch) | |
tree | c5f51a1552ab6a716aa9564b0032241f432965b4 /lib/private/memcache | |
parent | 3036a8714d67c7d9fa0fc6fc6bdfdce1a090f1d9 (diff) | |
download | nextcloud-server-0ba5c182f0d4486e4b970fbadfe064a6d1440753.tar.gz nextcloud-server-0ba5c182f0d4486e4b970fbadfe064a6d1440753.zip |
HHVM: In APC cache clear, only request the cache key in APCIterator.
The default value of the $format parameter of the APCIterator constructur is
APC_ITER_ALL which instructs the iterator to provide all available information
on cache values being iterated over. Only the key value is necessary for
matching and deletion via apc_delete(), though.
This prevents a "Format values FILENAME, DEVICE, INODE, MD5, NUM_HITS, MTIME,
CTIME, DTIME, ATIME, REFCOUNT not supported yet." notice on HHVM.
Diffstat (limited to 'lib/private/memcache')
-rw-r--r-- | lib/private/memcache/apc.php | 2 |
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); } |