]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
encache on insert instead of decaching
authorEvan Prodromou <evan@status.net>
Wed, 6 Jan 2010 05:48:43 +0000 (19:48 -1000)
committerEvan Prodromou <evan@status.net>
Wed, 6 Jan 2010 05:48:43 +0000 (19:48 -1000)
classes/Memcached_DataObject.php

index c31b2a54680756ed0bc4d09dac7186e3224376c6..d11bd636823a18c8c4b598353ba57cc0316df890 100644 (file)
@@ -142,8 +142,8 @@ class Memcached_DataObject extends DB_DataObject
 
     function insert()
     {
-        $this->decache(); // in case of cached negative lookups
         $result = parent::insert();
+        $this->encache(); // in case of cached negative lookups
         return $result;
     }