mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
* emailadmin: caching nameSpace information for the request to reduce communication to imap-server with the goal of improved performance clientside and less querying the mailserver
This commit is contained in:
parent
a0c437a23e
commit
643dcfa834
@ -394,6 +394,9 @@ class defaultimap extends Net_IMAP
|
||||
if(!$this->_connected) {
|
||||
return false;
|
||||
}
|
||||
static $nameSpace;
|
||||
if (isset($nameSpace)) return $nameSpace;
|
||||
|
||||
$retrieveDefault = false;
|
||||
if($this->hasCapability('NAMESPACE')) {
|
||||
$nameSpace = $this->getNamespace();
|
||||
@ -425,7 +428,7 @@ class defaultimap extends Net_IMAP
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$nameSpace = $result;
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user