memcached counter fix

This commit is contained in:
SJ 2012-02-10 15:08:15 +01:00
parent 41565a1d93
commit 2629329b74

View File

@ -37,7 +37,10 @@ class ModelStatCounter extends Model {
if(MEMCACHED_ENABLED) { if(MEMCACHED_ENABLED) {
$memcache = Registry::get('memcache'); $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); $memcache->set($counter, 0);
} }
} }