clear email Structure Cache Objects too on unsetCachedObjects; TODO: defaultimap -> check if some class vars are still used.

This commit is contained in:
Klaus Leithoff 2012-02-07 11:43:55 +00:00
parent 7e3c94794e
commit 93065f226a
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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]))
{