'Shopware\Models\Config\Value::postPersist' => 'onConfigElement',
'Shopware\Models\Config\Value::postRemove' => 'onConfigElement',
KernelEvents::TERMINATE => 'onKernelTerminate',
];
} public function onConfigElement(Enlight_Event_EventArgs
$args): void
{ /** @var \Shopware\Models\Config\Value $entity */
$entity =
$args->
get('entity'
);
$this->
addTagsConfigValue($entity);
} public function onKernelTerminate(Enlight_Event_EventArgs
$args): void
{ if (\
count($this->clearTags
) === 0
) { return;
} $this->cacheManager->
clean(Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG,
array_keys($this->clearTags
));
$this->clearTags =
[];
}