From: Michael M Slusarz Date: Sun, 22 Mar 2009 02:00:35 +0000 (-0600) Subject: Cache sequences in string format. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8d224dbcddc23b3bfc89a8a87853bebce74c9fab;p=horde.git Cache sequences in string format. --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index aeb7101c0..d23f2ed07 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -1311,7 +1311,7 @@ abstract class Horde_Imap_Client_Base $cache = hash('md5', serialize($options)); $metadata = $this->_cache->getMetaData($mailbox, array('HICsearch')); if (isset($metadata['HICsearch'][$cache])) { - $ret = $metadata['HICsearch'][$cache]; + $ret = $this->_utils->fromSequenceString($metadata['HICsearch'][$cache]); if ($this->_debug) { fwrite($this->_debug, sprintf("Horde_Imap_Client: Retrieved search results from cache (mailbox: %s; id: %s)\n", $mailbox, $cache)); } @@ -1321,7 +1321,7 @@ abstract class Horde_Imap_Client_Base if (is_null($ret)) { $ret = $this->_search($query, $options); if ($cache) { - $metadata['HICsearch'][$cache] = $ret; + $metadata['HICsearch'][$cache] = $this->_utils->toSequenceString($ret, array('nosort' => true)); $this->_updateMetaData($mailbox, $metadata); if ($this->_debug) { fwrite($this->_debug, sprintf("Horde_Imap_Client: Saved search results to cache (mailbox: %s; id: %s)\n", $mailbox, $cache));