Don't serialize member variables of this class
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 09:39:43 +0000 (03:39 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 09:39:43 +0000 (03:39 -0600)
framework/Cache/lib/Horde/Cache/Memcache.php

index ffb9b58..c9b3998 100644 (file)
@@ -51,6 +51,15 @@ class Horde_Cache_Memcache extends Horde_Cache_Base
     }
 
     /**
+     * Do cleanup prior to serialization and provide a list of variables
+     * to serialize.
+     */
+    public function __sleep()
+    {
+        return array();
+    }
+
+    /**
      * Attempts to retrieve cached data from the memcache and return it to
      * the caller.
      *