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;