/** * invalidate cache for this account * * @param Expressomail_Model_Account $_account * @return void */ protected function _invalidateAccountCache(Expressomail_Model_Account $_account) { Tinebase_Core::setupCache(); $cache = Tinebase_Core::getCache(); $cacheId = Tinebase_Core::createCacheId(array(Tinebase_Core::getUser()->accountId, $_account->getId())); $_filter = new Expressomail_Model_AccountFilter(array()); //Cleans cache generate in user login, when the method seach is called with a empty filter. $cacheSearch = Tinebase_Core::createCacheId(array('Expressomail_Controller_Account_search', Tinebase_Core::getUser()->accountId, $_filter->toArray())); $cache->remove($cacheId); $cache->remove($cacheSearch); }