From: Michael M Slusarz Date: Tue, 10 Mar 2009 04:56:46 +0000 (-0600) Subject: More places to invalidate status cache X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=19ea6a97df3eac85ab02cdbf24f0636a7a629b20;p=horde.git More places to invalidate status cache --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index cb8d8821f..ba111a160 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -701,10 +701,11 @@ abstract class Horde_Imap_Client_Base $this->_deleteMailbox($mailbox); - /* Delete mailbox cache. */ + /* Delete mailbox caches. */ if ($this->_initCache()) { $this->_cache->deleteMailbox($mailbox); } + unset($this->_temp['statuscache'][$mailbox]); /* Unsubscribe from mailbox. */ try { @@ -743,10 +744,11 @@ abstract class Horde_Imap_Client_Base $this->_renameMailbox($old, $new); - /* Delete mailbox cache. */ + /* Delete mailbox caches. */ if ($this->_initCache()) { $this->_cache->deleteMailbox($old); } + unset($this->_temp['statuscache'][$old]); /* Clean up subscription information. */ try { @@ -1043,6 +1045,8 @@ abstract class Horde_Imap_Client_Base $mailbox = Horde_Imap_Client_Utf7imap::Utf8ToUtf7Imap($mailbox); $ret = $this->_append($mailbox, $data, $options); + unset($this->_temp['statuscache'][$mailbox]); + if (is_array($ret)) { return $ret; }