Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-backend
Console
Command
CacheFlushCommand.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Console\Command
;
8
15
class
CacheFlushCommand
extends
AbstractCacheTypeManageCommand
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
}
Magento\Backend\Console\Command\AbstractCacheTypeManageCommand
Definition:
AbstractCacheTypeManageCommand.php:18
Magento\Backend\Console\Command\CacheFlushCommand\configure
configure()
Definition:
CacheFlushCommand.php:20
Magento\Backend\Console\Command\CacheFlushCommand\getDisplayMessage
getDisplayMessage()
Definition:
CacheFlushCommand.php:42
Magento\Backend\Console\Command\CacheFlushCommand\performAction
performAction(array $cacheTypes)
Definition:
CacheFlushCommand.php:33
Magento\Backend\Console\Command
Definition:
AbstractCacheCommand.php:7
Magento\Backend\Console\Command\CacheFlushCommand
Definition:
CacheFlushCommand.php:15