From d3e2653002451c85630885cde7c6cbcb55d9f832 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 23 Jun 2012 23:17:17 +0100 Subject: [PATCH] some cached values are often zero (eg unread PMs), 'zero' is still a cache hit though, only 'false' is miss --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 9b254f31..3691ff6f 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -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; }