diff options
author | alecpl <alec@alec.pl> | 2011-05-17 11:03:54 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-17 11:03:54 +0000 |
commit | 392589ef38ab677782ce9b76a1b1ba2a02cae023 (patch) | |
tree | e65392a3556ec18b1ff106f713722afeab688c6e /program | |
parent | 1f385b8a3d707149d801ef8e183ceecc4da5c9bd (diff) |
- Clear mailboxes.* cache when new mailbox is created
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_imap.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index d73792cf7..2683fe210 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -3230,8 +3230,13 @@ class rcube_imap $result = $this->conn->createFolder($mailbox); // try to subscribe it - if ($result && $subscribe) - $this->subscribe($mailbox); + if ($result) { + // clear cache + $this->clear_cache('/^mailboxes.*/', true); + + if ($subscribe) + $this->subscribe($mailbox); + } return $result; } |