Fix performance of list_folders() - use cached folders list(s)
This commit is contained in:
parent
4c02e93f18
commit
37ce52a319
1 changed files with 2 additions and 2 deletions
|
@ -557,10 +557,10 @@ class kolab_storage
|
|||
|
||||
// Get folders list
|
||||
if ($subscribed) {
|
||||
$folders = self::$imap->list_folders_subscribed_direct($root, $mbox);
|
||||
$folders = self::$imap->list_folders_subscribed($root, $mbox);
|
||||
}
|
||||
else {
|
||||
$folders = self::$imap->list_folders_direct($root, $mbox);
|
||||
$folders = self::$imap->list_folders($root, $mbox);
|
||||
}
|
||||
|
||||
// In case of an error, return empty list (?)
|
||||
|
|
Loading…
Add table
Reference in a new issue