some cached values are often zero (eg unread PMs), 'zero' is still a cache hit though, only 'false' is miss

This commit is contained in:
Shish 2012-06-23 23:17:17 +01:00
parent 1daf0416bd
commit d3e2653002

View File

@ -195,7 +195,7 @@ class MemcacheCache implements CacheEngine {
public function get($key) {
assert(!is_null($key));
$val = $this->memcache->get($key);
if($val) {
if($val !== false) {
$this->hits++;
return $val;
}