From: Michael M Slusarz Date: Tue, 4 May 2010 09:39:43 +0000 (-0600) Subject: Don't serialize member variables of this class X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=93ff10f7312656ccf89ec25e25ac3746e88f0391;p=horde.git Don't serialize member variables of this class --- diff --git a/framework/Cache/lib/Horde/Cache/Memcache.php b/framework/Cache/lib/Horde/Cache/Memcache.php index ffb9b587a..c9b3998ef 100644 --- a/framework/Cache/lib/Horde/Cache/Memcache.php +++ b/framework/Cache/lib/Horde/Cache/Memcache.php @@ -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. *