} public function invalidateConfigKey(SystemConfigChangedHook
$event): void
{ $keys =
[];
if ($this->fineGrainedCacheConfig
) { /** @var list<string> $keys */
$keys =
array_map( static fn (string
$key) => SystemConfigService::
buildName($key),
$event->
getWebhookPayload()['changes'
] );
} else { $keys[] = 'global.system.config';
} // invalidates the complete cached config and routes which access a specific key
$this->cacheInvalidator->
invalidate([ ...
$keys,
CachedSystemConfigLoader::CACHE_TAG,
]);
}