예제 #1
0
파일: Pdo.php 프로젝트: knatorski/SMS
 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);
             }
         }
     }
 }