do not access cache for writing, if there is nothing new to set

This commit is contained in:
Klaus Leithoff 2014-03-14 10:03:52 +00:00
parent b07aee1ae0
commit 6ab8d2b86b

View File

@ -363,10 +363,13 @@ class felamimail_activesync implements activesync_plugin_write, activesync_plugi
//die('Mail not or mis-configured!'); //die('Mail not or mis-configured!');
} }
else else
{
if (!empty($waitOnFailure[self::$profileID][$this->backend->_devid]))
{ {
$waitOnFailure[self::$profileID][$this->backend->_devid] = array(); $waitOnFailure[self::$profileID][$this->backend->_devid] = array();
egw_cache::setCache(egw_cache::INSTANCE,'email','ActiveSyncWaitOnFailure'.trim($GLOBALS['egw_info']['user']['account_id']),$waitOnFailure,$expiration=60*60*2); egw_cache::setCache(egw_cache::INSTANCE,'email','ActiveSyncWaitOnFailure'.trim($GLOBALS['egw_info']['user']['account_id']),$waitOnFailure,$expiration=60*60*2);
} }
}
$this->_wasteID = $this->mail->getTrashFolder(false); $this->_wasteID = $this->mail->getTrashFolder(false);
//error_log(__METHOD__.__LINE__.' TrashFolder:'.$this->_wasteID); //error_log(__METHOD__.__LINE__.' TrashFolder:'.$this->_wasteID);
$this->_sentID = $this->mail->getSentFolder(false); $this->_sentID = $this->mail->getSentFolder(false);