Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CacheFlushCommand.php
Go to the documentation of this file.
1 <?php
8 
16 {
20  protected function configure()
21  {
22  $this->setName('cache:flush');
23  $this->setDescription('Flushes cache storage used by cache type(s)');
24  parent::configure();
25  }
26 
33  protected function performAction(array $cacheTypes)
34  {
35  $this->eventManager->dispatch('adminhtml_cache_flush_all');
36  $this->cacheManager->flush($cacheTypes);
37  }
38 
42  protected function getDisplayMessage()
43  {
44  return 'Flushed cache types:';
45  }
46 }