|
@@ 2571-2575 (lines=5) @@
|
| 2568 |
|
// always use static on single request if info is available; |
| 2569 |
|
// so if you require subscribed/unsubscribed results on a single request you MUST |
| 2570 |
|
// set $_useCacheIfPossible to false ! |
| 2571 |
|
if ($_useCacheIfPossible && isset($folders2return[$this->icServer->ImapServerId]) && !empty($folders2return[$this->icServer->ImapServerId])) |
| 2572 |
|
{ |
| 2573 |
|
if (self::$debugTimes) self::logRunTimes($starttime,null,'using static',__METHOD__.' ('.__LINE__.') '); |
| 2574 |
|
return $folders2return[$this->icServer->ImapServerId]; |
| 2575 |
|
} |
| 2576 |
|
|
| 2577 |
|
if ($_subscribedOnly && $_getCounters===false) |
| 2578 |
|
{ |
|
@@ 2580-2585 (lines=6) @@
|
| 2577 |
|
if ($_subscribedOnly && $_getCounters===false) |
| 2578 |
|
{ |
| 2579 |
|
if (is_null($folders2return)) $folders2return = Cache::getCache(Cache::INSTANCE,'email','folderObjects'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),60*60*1); |
| 2580 |
|
if ($_useCacheIfPossible && isset($folders2return[$this->icServer->ImapServerId]) && !empty($folders2return[$this->icServer->ImapServerId])) |
| 2581 |
|
{ |
| 2582 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' using Cached folderObjects'.array2string($folders2return[$this->icServer->ImapServerId])); |
| 2583 |
|
if (self::$debugTimes) self::logRunTimes($starttime,null,'from Cache',__METHOD__.' ('.__LINE__.') '); |
| 2584 |
|
return $folders2return[$this->icServer->ImapServerId]; |
| 2585 |
|
} |
| 2586 |
|
} |
| 2587 |
|
// use $folderBasicInfo for holding attributes and other basic folderinfo $folderBasicInfo[$this->icServer->ImapServerId] |
| 2588 |
|
static $folderBasicInfo; |