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
Cron
CleanCache.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Cron
;
7
11
class
CleanCache
12
{
16
private
$cacheFrontendPool;
17
21
public
function
__construct
(
22
\
Magento
\Framework\
App
\Cache\Frontend\Pool $cacheFrontendPool
23
) {
24
$this->cacheFrontendPool = $cacheFrontendPool;
25
}
26
32
public
function
execute()
33
{
35
foreach
($this->cacheFrontendPool as $cacheFrontend) {
36
// Magento cache frontend does not support the 'old' cleaning mode, that's why backend is used directly
37
$cacheFrontend->getBackend()->clean(\
Zend_Cache::CLEANING_MODE_OLD
);
38
}
39
}
40
}
Magento\Framework\App
Magento\Backend\Cron
Definition:
CleanCache.php:6
Magento\Backend\Cron\CleanCache
Definition:
CleanCache.php:11
Zend_Cache\CLEANING_MODE_OLD
const CLEANING_MODE_OLD
Definition:
Cache.php:73
Magento
Magento\Backend\Cron\CleanCache\__construct
__construct(\Magento\Framework\App\Cache\Frontend\Pool $cacheFrontendPool)
Definition:
CleanCache.php:21