From 2629329b74e632bd66c623dcf41a7b56ee953552 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 10 Feb 2012 15:08:15 +0100 Subject: [PATCH] memcached counter fix --- webui/model/stat/counter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/model/stat/counter.php b/webui/model/stat/counter.php index a3e4d26a..cc41cf50 100644 --- a/webui/model/stat/counter.php +++ b/webui/model/stat/counter.php @@ -37,7 +37,10 @@ class ModelStatCounter extends Model { if(MEMCACHED_ENABLED) { $memcache = Registry::get('memcache'); - foreach (Registry::get('counters') as $counter) { + $c = Registry::get('counters'); + unset($c[MEMCACHED_PREFIX . 'size']); + + foreach ($c as $counter) { $memcache->set($counter, 0); } }