コード例 #1
0
 /**
  * {@inheritDoc}
  * @return mixed
  */
 public function cleanup()
 {
     $partitions = array($this->modx->getOption('cache_action_map_key', null, 'action_map') => array(), $this->modx->getOption('cache_menu_key', null, 'menu') => array());
     if ($this->modx->getOption('cache_db', null, false)) {
         $partitions['db'] = array();
     }
     $this->modx->cacheManager->refresh($partitions);
     return parent::cleanup();
 }
コード例 #2
0
ファイル: update.class.php プロジェクト: Tramp1357/wood
 public function cleanup()
 {
     $response = parent::cleanup();
     $response['message'] = $this->getProperty('success_message', 'Заказ успешно обновлен');
     return $response;
 }