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-webapi-security
Model
Plugin
CacheInvalidator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\WebapiSecurity\Model\Plugin
;
7
8
class
CacheInvalidator
9
{
13
protected
$cacheTypeList
;
14
20
public
function
__construct
(\
Magento
\Framework\
App
\Cache\TypeListInterface
$cacheTypeList
)
21
{
22
$this->cacheTypeList =
$cacheTypeList
;
23
}
24
33
public
function
afterAfterSave
(
34
\
Magento
\Framework\
App
\Config\Value $subject,
35
\
Magento
\Framework\
App
\Config\Value
$result
36
) {
37
if
(
$result
->getPath() ==
\Magento\WebapiSecurity\Model\Plugin\AnonymousResourceSecurity::XML_ALLOW_INSECURE
38
&&
$result
->isValueChanged()
39
) {
40
$this->cacheTypeList->invalidate(\
Magento
\Webapi\Model\Cache\Type\Webapi::TYPE_IDENTIFIER);
41
}
42
43
return
$result
;
44
}
45
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\App
Magento\WebapiSecurity\Model\Plugin
Definition:
AnonymousResourceSecurity.php:6
Magento\WebapiSecurity\Model\Plugin\CacheInvalidator\__construct
__construct(\Magento\Framework\App\Cache\TypeListInterface $cacheTypeList)
Definition:
CacheInvalidator.php:20
Magento\WebapiSecurity\Model\Plugin\CacheInvalidator\$cacheTypeList
$cacheTypeList
Definition:
CacheInvalidator.php:13
Magento\WebapiSecurity\Model\Plugin\AnonymousResourceSecurity\XML_ALLOW_INSECURE
const XML_ALLOW_INSECURE
Definition:
AnonymousResourceSecurity.php:15
Magento\WebapiSecurity\Model\Plugin\CacheInvalidator\afterAfterSave
afterAfterSave(\Magento\Framework\App\Config\Value $subject, \Magento\Framework\App\Config\Value $result)
Definition:
CacheInvalidator.php:33
Magento
Magento\WebapiSecurity\Model\Plugin\CacheInvalidator
Definition:
CacheInvalidator.php:8