From abfa132745abf1412c59a44144c576ca4b693dcf Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 23 Jan 2013 08:34:22 +0000 Subject: [PATCH] reset composeIDCache on error --- felamimail/inc/class.uicompose.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/felamimail/inc/class.uicompose.inc.php b/felamimail/inc/class.uicompose.inc.php index bf19d03551..be032389c6 100644 --- a/felamimail/inc/class.uicompose.inc.php +++ b/felamimail/inc/class.uicompose.inc.php @@ -186,6 +186,8 @@ //error_log(__METHOD__.__LINE__.' '.$formData['subject'].' '.$cachedComposeID.'<->'.$this->composeID); if (!empty($cachedComposeID) && $cachedComposeID != $this->composeID) return; if(!$this->bocompose->send($formData)) { + // reset the cached composeID, as something failed + egw_cache::setCache(egw_cache::INSTANCE,'email','composeIdCache'.trim($GLOBALS['egw_info']['user']['account_id']),null,$expiration=60); // print ""; $this->compose(); return;