alecpl
2011-08-19 2ce8e5dd94246e9c0bd0b2dd795cc779d1ef766a
- Use internal cache for mailbox_info() result


1 files modified
6 ■■■■■ changed files
program/include/rcube_imap.php 6 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -3513,6 +3513,10 @@
     */
    function mailbox_info($mailbox)
    {
        if ($this->icache['options'] && $this->icache['options']['name'] == $mailbox) {
            return $this->icache['options'];
        }
        $acl       = $this->get_capability('ACL');
        $namespace = $this->get_namespace();
        $options   = array();
@@ -3574,6 +3578,8 @@
            $options['norename'] = $options['is_root'] || $options['namespace'] != 'personal';
        }
        $this->icache['options'] = $options;
        return $options;
    }