- Clear mailboxes.* cache when new mailbox is created

release-0.6
alecpl 13 years ago
parent 1f385b8a3d
commit 392589ef38

@ -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;
}

Loading…
Cancel
Save