stop using DB_DataObject's staticGet() which caches
This commit is contained in:
parent
360fdb219d
commit
727978332a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user