mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
memcached counter fix
This commit is contained in:
parent
41565a1d93
commit
2629329b74
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user