1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- /**
- * Cache cleaner backend model
- *
- */
- namespace Magento\Config\Model\Config\Backend;
- /**
- * @api
- * @since 100.0.2
- */
- class Cache extends \Magento\Framework\App\Config\Value
- {
- /**
- * Cache tags to clean
- *
- * @var array
- */
- protected $_cacheTags = [];
- /**
- * Clean cache, value was changed
- *
- * @return $this
- */
- public function afterSave()
- {
- if ($this->isValueChanged()) {
- $this->_cacheManager->clean($this->_cacheTags);
- }
- return $this;
- }
- }
|