/** * Execution method always used for tasks * * @return void */ public function execute() { extract($this->params); if (!isset($config) || empty($config)) { $configs = Cache::configured(); } else { $configs = array($config); } foreach ($configs as $config) { if (Cache::isInitialized($config)) { $cleared = CacheManager::clear(!$expired, $config); $this->out(__d('webmaster', "The '%s' cache configuration was successfully cleared.", $config)); } else { $this->out(__d('webmaster', "The '%s' cache configuration has not been initialized.", $config)); } } $this->out(); }
public function clear_phpboost_cache() { CacheManager::clear(); $this->delete_files(self::$cache_folder, self::$all_files_regex_without_extensions); }