Changeset 862de1b in github
- Timestamp:
- Apr 21, 2012 12:28:03 PM (13 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo
- Children:
- 6707ca4
- Parents:
- 5a79416
- File:
-
- 1 edited
-
program/include/rcube_imap.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r5d66a4b r862de1b 567 567 $mode = strtoupper($mode); 568 568 569 // count search set 570 if ($this->search_string && $folder == $this->folder && ($mode == 'ALL' || $mode == 'THREADS') && !$force) {569 // count search set, assume search set is always up-to-date (don't check $force flag) 570 if ($this->search_string && $folder == $this->folder && ($mode == 'ALL' || $mode == 'THREADS')) { 571 571 if ($mode == 'ALL') { 572 572 return $this->search_set->count_messages(); … … 3145 3145 } 3146 3146 3147 // get cached metadata 3148 $cache_key = 'mailboxes.folder-info.' . $folder; 3149 $cached = $this->get_cache($cache_key); 3150 3151 if (is_array($cached)) 3152 return $cached; 3153 3147 3154 $acl = $this->get_capability('ACL'); 3148 3155 $namespace = $this->get_namespace(); … … 3207 3214 } 3208 3215 3216 // update caches 3209 3217 $this->icache['options'] = $options; 3218 $this->update_cache($cache_key, $options); 3210 3219 3211 3220 return $options; … … 3273 3282 } 3274 3283 3284 $this->clear_cache('mailboxes.folder-info.' . $folder); 3285 3275 3286 return $this->conn->setACL($folder, $user, $acl); 3276 3287 } … … 3385 3396 return false; 3386 3397 } 3398 3399 $this->clear_cache('mailboxes.metadata.' . $folder); 3387 3400 3388 3401 if ($this->get_capability('METADATA') || … … 3418 3431 } 3419 3432 3433 $this->clear_cache('mailboxes.metadata.' . $folder); 3434 3420 3435 if ($this->get_capability('METADATA') || 3421 3436 (!strlen($folder) && $this->get_capability('METADATA-SERVER')) … … 3451 3466 } 3452 3467 3468 $cache_key = 'mailboxes.metadata.' . $folder; 3469 if ($cached = $this->get_cache($cache_key)) 3470 return $cached; 3471 3453 3472 if ($this->get_capability('METADATA') || 3454 3473 (!strlen($folder) && $this->get_capability('METADATA-SERVER')) 3455 3474 ) { 3456 return $this->conn->getMetadata($folder, $entries, $options); 3475 $res = $this->conn->getMetadata($folder, $entries, $options); 3476 $this->update_cache($cache_key, $res); 3477 return $res; 3457 3478 } 3458 3479 else if ($this->get_capability('ANNOTATEMORE') || $this->get_capability('ANNOTATEMORE2')) { … … 3473 3494 } 3474 3495 3496 $this->update_cache($cache_key, $res); 3475 3497 return $res; 3476 3498 }
Note: See TracChangeset
for help on using the changeset viewer.
