cache = $cache; $this->db = $db; $this->auth = $auth; $this->log = $log; $this->user = $user; $this->config = $config; $this->user->add_lang(array('acp/common')); parent::__construct(); } protected function configure() { $this ->setName('cache:purge') ->setDescription('Purge the cache.') ; } protected function execute(InputInterface $input, OutputInterface $output) { $this->config->increment('assets_version', 1); $this->cache->purge(); // Clear permissions $this->auth->acl_clear_prefetch(); phpbb_cache_moderators($this->db, $this->cache, $this->auth); $this->log->add('admin', ANONYMOUS, '', 'LOG_PURGE_CACHE', time(), array()); $output->writeln($this->user->lang('PURGE_CACHE_SUCCESS')); } }