core/modules/system/src/EventSubscriber/ThemeSettingsCacheTag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/system/src/EventSubscriber/ThemeSettingsCacheTag.php b/core/modules/system/src/EventSubscriber/ThemeSettingsCacheTag.php index eb68d75..1d03c77 100644 --- a/core/modules/system/src/EventSubscriber/ThemeSettingsCacheTag.php +++ b/core/modules/system/src/EventSubscriber/ThemeSettingsCacheTag.php @@ -53,8 +53,8 @@ public function __construct(ThemeHandlerInterface $theme_handler, CacheTagsInval * The Event to process. */ public function onSave(ConfigCrudEvent $event) { - // Global theme settings. - if ($event->getConfig()->getName() === 'system.theme.global') { + // Theme configuration and global theme settings. + if (in_array($event->getConfig()->getName(), ['system.theme', 'system.theme.global'])) { $this->cacheTagsInvalidator->invalidateTags(['rendered']); }