public function commit() { if ($this->_rollback) { $this->rollBack(); } else { $this->_stack--; if ($this->_stack == 0) { parent::commit(); $cache = Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('cachemanager')->getCache('requestcache'); if ($cache) { $cache->clean(Zend_Cache::CLEANING_MODE_ALL); } } } }