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
Controller
Adminhtml
Cache
FlushSystem.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Controller\Adminhtml\Cache
;
8
9
use
Magento\Framework\App\Action\HttpGetActionInterface
as HttpGetActionInterface;
10
11
class
FlushSystem
extends
\Magento\Backend\Controller\Adminhtml\Cache
implements HttpGetActionInterface
12
{
18
const
ADMIN_RESOURCE
=
'Magento_Backend::flush_magento_cache'
;
19
25
public
function
execute
()
26
{
28
foreach
($this->_cacheFrontendPool as $cacheFrontend) {
29
$cacheFrontend->clean();
30
}
31
$this->_eventManager->dispatch(
'adminhtml_cache_flush_system'
);
32
$this->messageManager->addSuccessMessage(
__
(
"The Magento cache storage has been flushed."
));
34
$resultRedirect = $this->resultRedirectFactory->create();
35
return
$resultRedirect->setPath(
'adminhtml/*'
);
36
}
37
}
Magento\Backend\Controller\Adminhtml\Cache
Definition:
Cache.php:12
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
__
__()
Definition:
__.php:13
Magento\Backend\Controller\Adminhtml\Cache\FlushSystem
Definition:
FlushSystem.php:11
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Backend\Controller\Adminhtml\Cache
Definition:
CleanStaticFilesTest.php:7
Magento\Backend\Controller\Adminhtml\Cache\FlushSystem\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
FlushSystem.php:18