]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
stop using DB_DataObject's staticGet() which caches
authorEvan Prodromou <evan@status.net>
Fri, 1 Jan 2010 20:57:22 +0000 (10:57 -1000)
committerEvan Prodromou <evan@status.net>
Fri, 1 Jan 2010 20:57:22 +0000 (10:57 -1000)
classes/Memcached_DataObject.php

index d8b0db5a69b7e1363a5487e6272050175d57f97d..f511335083e987da245fc4243236a845131436ec 100644 (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 = 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;
         }
     }