<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Rss\Model\System\Config\Backend;
/**
* Cache cleaner backend model
*
*/
class Links extends \Magento\Framework\App\Config\Value
{
/**
* Invalidate cache type, when value was changed
*
* @return $this
*/
public function afterSave()
{
if ($this->isValueChanged()) {
$this->cacheTypeList->invalidate(\Magento\Framework\View\Element\AbstractBlock::CACHE_GROUP);
}
return parent::afterSave();
}
}
-
Ketan authoredf012f907