Memcache returns false on cache miss

darcs-hash:20080926164413-5ed1f-d0bbbab5215e43d182e8807fc9fec6cc86dae1ae.gz
This commit is contained in:
Evan Prodromou 2008-09-26 12:44:13 -04:00
parent 98add9803b
commit 92e1c41f63

View File

@ -33,7 +33,7 @@ class Memcached_DataObject extends DB_DataObject
unset($i); unset($i);
} }
$i = Memcached_DataObject::getcached($cls, $k, $v); $i = Memcached_DataObject::getcached($cls, $k, $v);
if (!is_null($i)) { if ($i) {
return $i; return $i;
} else { } else {
$i = DB_DataObject::staticGet($cls, $k, $v); $i = DB_DataObject::staticGet($cls, $k, $v);