From: Evan Prodromou Date: Fri, 1 Jan 2010 20:57:22 +0000 (-1000) Subject: stop using DB_DataObject's staticGet() which caches X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=727978332ae7e074024ac7f9900570ebb0e9ba80;p=quix0rs-gnu-social.git stop using DB_DataObject's staticGet() which caches --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index d8b0db5a69..f511335083 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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 = 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; } }