stop using DB_DataObject's staticGet() which caches

This commit is contained in:
Evan Prodromou 2010-01-01 10:57:22 -10:00
parent 360fdb219d
commit 727978332a

View File

@ -51,11 +51,17 @@ class Memcached_DataObject extends DB_DataObject
if ($i) { if ($i) {
return $i; return $i;
} else { } else {
$i = DB_DataObject::staticGet($cls, $k, $v); $i = DB_DataObject::factory($cls);
if ($i) { if (empty($i)) {
$i->encache(); return null;
}
$result = $i->get($k, $v);
if ($result) {
$i->encache();
return $i;
} else {
return null;
} }
return $i;
} }
} }