From 19ea6a97df3eac85ab02cdbf24f0636a7a629b20 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 9 Mar 2009 22:56:46 -0600 Subject: [PATCH] More places to invalidate status cache --- framework/Imap_Client/lib/Horde/Imap/Client/Base.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.11.0