/** * {@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(); }
public function cleanup() { $response = parent::cleanup(); $response['message'] = $this->getProperty('success_message', 'Заказ успешно обновлен'); return $response; }