From ce6c049d62d9e8b836b6c01465a574628a4db869 Mon Sep 17 00:00:00 2001 From: xfra35 Date: Thu, 17 Nov 2016 16:25:25 +0100 Subject: [PATCH] Fix Cache->reset for memcache (#170) --- base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base.php b/base.php index ebd63eed..e13c1659 100644 --- a/base.php +++ b/base.php @@ -2511,8 +2511,9 @@ function reset($suffix=NULL,$lifetime=0) { foreach (memcache_get_extended_stats( $this->ref,'cachedump',$id) as $data) if (is_array($data)) - foreach ($data as $key=>$val) + foreach (array_keys($data) as $key) if (preg_match($regex,$key) && + ($val=memcache_get($this->ref,$key)) && $val[1]+$lifetimeref,$key); return TRUE;