summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-17 11:03:54 +0000
committeralecpl <alec@alec.pl>2011-05-17 11:03:54 +0000
commit392589ef38ab677782ce9b76a1b1ba2a02cae023 (patch)
treee65392a3556ec18b1ff106f713722afeab688c6e /program/include
parent1f385b8a3d707149d801ef8e183ceecc4da5c9bd (diff)
- Clear mailboxes.* cache when new mailbox is created
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php9
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;
}