mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 07:50:11 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user