]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Memcached_DataObject.php
Updates to the update_translations script
[quix0rs-gnu-social.git] / classes / Memcached_DataObject.php
index 84529ce9a6e7c5eb43dd45d3e293ff8c86f91b0d..0f2c54cade0a1dd7e39d4b9214fcf2719be95d99 100644 (file)
@@ -46,14 +46,11 @@ class Memcached_DataObject extends DB_DataObject
        
        function insert() {
                $result = parent::insert();
-               if ($result) {
-                       $this->encache();
-               }
                return $result;
        }
        
        function update($orig=NULL) {
-               if (!is_null($orig)) {
+               if (is_object($orig) && $orig instanceof Memcached_DataObject) {
                        $orig->decache(); # might be different keys
                }
                $result = parent::update($orig);