Links.php 591 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Rss\Model\System\Config\Backend;
  7. /**
  8. * Cache cleaner backend model
  9. *
  10. */
  11. class Links extends \Magento\Framework\App\Config\Value
  12. {
  13. /**
  14. * Invalidate cache type, when value was changed
  15. *
  16. * @return $this
  17. */
  18. public function afterSave()
  19. {
  20. if ($this->isValueChanged()) {
  21. $this->cacheTypeList->invalidate(\Magento\Framework\View\Element\AbstractBlock::CACHE_GROUP);
  22. }
  23. return parent::afterSave();
  24. }
  25. }