Changeset 5095 in subversion


Ignore:
Timestamp:
Aug 19, 2011 4:00:09 AM (21 months ago)
Author:
alec
Message:
  • Use internal cache for mailbox_info() result
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.php

    r5085 r5095  
    35143514    function mailbox_info($mailbox) 
    35153515    { 
     3516        if ($this->icache['options'] && $this->icache['options']['name'] == $mailbox) { 
     3517            return $this->icache['options']; 
     3518        } 
     3519 
    35163520        $acl       = $this->get_capability('ACL'); 
    35173521        $namespace = $this->get_namespace(); 
     
    35743578            $options['norename'] = $options['is_root'] || $options['namespace'] != 'personal'; 
    35753579        } 
     3580 
     3581        $this->icache['options'] = $options; 
    35763582 
    35773583        return $options; 
Note: See TracChangeset for help on using the changeset viewer.