|
@@ 2542-2546 (lines=5) @@
|
| 2539 |
|
// always use static on single request if info is available; |
| 2540 |
|
// so if you require subscribed/unsubscribed results on a single request you MUST |
| 2541 |
|
// set $_useCacheIfPossible to false ! |
| 2542 |
|
if ($_useCacheIfPossible && isset($folders2return[$this->icServer->ImapServerId]) && !empty($folders2return[$this->icServer->ImapServerId])) |
| 2543 |
|
{ |
| 2544 |
|
if (self::$debugTimes) self::logRunTimes($starttime,null,'using static',__METHOD__.' ('.__LINE__.') '); |
| 2545 |
|
return $folders2return[$this->icServer->ImapServerId]; |
| 2546 |
|
} |
| 2547 |
|
|
| 2548 |
|
if ($_subscribedOnly && $_getCounters===false) |
| 2549 |
|
{ |
|
@@ 2551-2556 (lines=6) @@
|
| 2548 |
|
if ($_subscribedOnly && $_getCounters===false) |
| 2549 |
|
{ |
| 2550 |
|
if (is_null($folders2return)) $folders2return = Cache::getCache(Cache::INSTANCE,'email','folderObjects'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),60*60*1); |
| 2551 |
|
if ($_useCacheIfPossible && isset($folders2return[$this->icServer->ImapServerId]) && !empty($folders2return[$this->icServer->ImapServerId])) |
| 2552 |
|
{ |
| 2553 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' using Cached folderObjects'.array2string($folders2return[$this->icServer->ImapServerId])); |
| 2554 |
|
if (self::$debugTimes) self::logRunTimes($starttime,null,'from Cache',__METHOD__.' ('.__LINE__.') '); |
| 2555 |
|
return $folders2return[$this->icServer->ImapServerId]; |
| 2556 |
|
} |
| 2557 |
|
} |
| 2558 |
|
// use $folderBasicInfo for holding attributes and other basic folderinfo $folderBasicInfo[$this->icServer->ImapServerId] |
| 2559 |
|
static $folderBasicInfo; |