webui fixes

This commit is contained in:
SJ
2013-02-16 13:54:41 +01:00
parent 1a5c36eb64
commit ff616a8398
2 changed files with 12 additions and 20 deletions

View File

@ -33,24 +33,6 @@ class ModelStatCounter extends Model {
}
public function reset_counters(){
if(MEMCACHED_ENABLED) {
$memcache = Registry::get('memcache');
$c = Registry::get('counters');
unset($c[MEMCACHED_PREFIX . 'size']);
foreach ($c as $counter) {
$memcache->set($counter, 0);
}
}
$query = $this->db->query("UPDATE " . TABLE_COUNTER . " SET `rcvd`=0, `virus`=0, `duplicate`=0, `ignore`=0");
return 0;
}
}
?>