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) {
return $i;
} else {
$i = DB_DataObject::staticGet($cls, $k, $v);
if ($i) {
$i->encache();
$i = DB_DataObject::factory($cls);
if (empty($i)) {
return null;
}
$result = $i->get($k, $v);
if ($result) {
$i->encache();
return $i;
} else {
return null;
}
return $i;
}
}