mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
clear email Structure Cache Objects too on unsetCachedObjects; TODO: defaultimap -> check if some class vars are still used.
This commit is contained in:
parent
7e3c94794e
commit
93065f226a
@ -107,14 +107,14 @@ class defaultimap extends Net_IMAP
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $mailboxDelimiter = '/';
|
||||
var $mailboxDelimiter = '/'; // TODO: Check if still used
|
||||
|
||||
/**
|
||||
* the mailbox prefix. maybe used by uw-imap only?
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $mailboxPrefix = '~/mail';
|
||||
var $mailboxPrefix = '~/mail'; // TODO: Check if still used
|
||||
|
||||
/**
|
||||
* is the mbstring extension available
|
||||
|
@ -578,7 +578,8 @@ class emailadmin_bo extends so_sql
|
||||
* 1) icServerIMAP_connectionError
|
||||
* 2) icServerSIEVE_connectionError
|
||||
* 3) defaultimap_nameSpace
|
||||
* 4) INSTANCE OF FELAMIMAIL_BO
|
||||
* 4) StructureCache (emailStructure Objects)
|
||||
* 5) INSTANCE OF FELAMIMAIL_BO
|
||||
*
|
||||
* @param int $_profileID
|
||||
* @return void
|
||||
@ -600,6 +601,12 @@ class emailadmin_bo extends so_sql
|
||||
unset($isConError[$_profileID]);
|
||||
egw_cache::setCache(egw_cache::INSTANCE,'email','icServerSIEVE_connectionError'.trim($GLOBALS['egw_info']['user']['account_id']),$isConError,$expiration=60*15);
|
||||
}
|
||||
$structure = egw_cache::getCache(egw_cache::INSTANCE,'email','structureCache'.trim($GLOBALS['egw_info']['user']['account_id']),$callback=null,$callback_params=array(),$expiration=60*60*1);
|
||||
if (isset($structure[$_profileID]))
|
||||
{
|
||||
unset($structure[$_profileID]);
|
||||
egw_cache::setCache(egw_cache::INSTANCE,'email','structureCache'.trim($GLOBALS['egw_info']['user']['account_id']),$structure, $expiration=60*60*1);
|
||||
}
|
||||
$nameSpace = egw_cache::getSession('email','defaultimap_nameSpace');
|
||||
if (isset($nameSpace[$_profileID]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user