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-page-cache
Observer
InvalidateCache.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\PageCache\Observer
;
8
9
use
Magento\Framework\Event\ObserverInterface
;
10
11
class
InvalidateCache
implements
ObserverInterface
12
{
16
protected
$_typeList
;
17
23
protected
$_config
;
24
29
public
function
__construct
(
30
\
Magento
\PageCache\Model\Config
$config
,
31
\
Magento
\Framework\
App
\Cache\TypeListInterface $typeList
32
) {
33
$this->_config =
$config
;
34
$this->_typeList = $typeList;
35
}
36
44
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
45
{
46
if
($this->_config->isEnabled()) {
47
$this->_typeList->invalidate(
'full_page'
);
48
}
49
}
50
}
Magento\PageCache\Observer\InvalidateCache
Definition:
InvalidateCache.php:11
Magento\Framework\App
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\PageCache\Observer
Definition:
FlushAllCache.php:7
Magento\PageCache\Observer\InvalidateCache\__construct
__construct(\Magento\PageCache\Model\Config $config, \Magento\Framework\App\Cache\TypeListInterface $typeList)
Definition:
InvalidateCache.php:29
Magento\PageCache\Observer\InvalidateCache\$_typeList
$_typeList
Definition:
InvalidateCache.php:16
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento
Magento\PageCache\Observer\InvalidateCache\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
InvalidateCache.php:44
Magento\PageCache\Observer\InvalidateCache\$_config
$_config
Definition:
InvalidateCache.php:23