Problem/Motivation
SiteConfigOverrider::getCacheableMetadata() varies overridden config by the site cache context but adds no cache tags (there's an @todo Add a site tag placeholder). So when a site's underlying data changes — e.g. saving the entity that provides its overrides — caches built from the overridden config are not invalidated and serve stale values.
Fix: add the current site's cache tags ($currentSite->getCacheTags()) to the override metadata for overridden config names. Site plugins that derive overrides from an entity (e.g. sites_group's GroupSitesBase, which exposes group:GID) then make saving that entity invalidate the dependent caches. Companion to sites_group #3524112: Check that group changes invalidate config overrides.
Issue fork sites-3605422
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hydra commentedComment #6
hydra commented