From 0ba5c182f0d4486e4b970fbadfe064a6d1440753 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 19 Dec 2014 03:24:00 +0100 Subject: [PATCH] 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. --- lib/private/memcache/apc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5