* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ class RetailcrmSettingsItemCache extends RetailcrmSettingsItem { public function updateValue() { if (!$this->issetValue()) { return; } $value = $this->getValueForUpdate(); Configuration::updateValue($this->configKey, $value); Cache::getInstance()->set($this->configKey, $value); } public function deleteValue() { return parent::deleteValue() && Cache::getInstance()->delete($this->configKey); } }