Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Execute.php
Go to the documentation of this file.
1 <?php
8 
10 
11 class Execute
12 {
16  protected $config;
17 
21  protected $typeList;
22 
27  public function __construct(
28  \Magento\PageCache\Model\Config $config,
29  \Magento\Framework\App\Cache\TypeListInterface $typeList
30  ) {
31  $this->config = $config;
32  $this->typeList = $typeList;
33  }
34 
43  {
44  if ($this->config->isEnabled()) {
45  $this->typeList->invalidate('full_page');
46  }
47  return $result;
48  }
49 }
afterExecute(AbstractAction $subject, AbstractAction $result)
Definition: Execute.php:42
__construct(\Magento\PageCache\Model\Config $config, \Magento\Framework\App\Cache\TypeListInterface $typeList)
Definition: Execute.php:27