Skip to content

[5.x] Fix multi-site URL invalidation in ApplicationCacher#13793

Merged
jasonvarga merged 2 commits into5.xfrom
fix-multi-site-url-invalidation-on-half-measure
Feb 2, 2026
Merged

[5.x] Fix multi-site URL invalidation in ApplicationCacher#13793
jasonvarga merged 2 commits into5.xfrom
fix-multi-site-url-invalidation-on-half-measure

Conversation

@joshuablum
Copy link
Member

@joshuablum joshuablum commented Feb 2, 2026

Fixes invalidateUrl() by now passing $domain to forgetUrl(). This resulted in URL index issues in multi-site setups. Also extracts the domain from full URLs when $domain is null which can happen when running from the command line. Looks like this is just an issue with half measure and got fixed in full measure and the FileCacher in 2022 already, see #6621.
Tests ensure that URL invalidation actually works correctly in a multi-site setup verifying the URL index is updated under the correct domain hash when $domain is explicitly passed and then also verifies domain extraction works for CLI contexts.

Should go into 6.x too.

Reported by Christian J. through support, thanks!

@joshuablum joshuablum changed the title [5.x] Fix multi-site URL invalidation in ApplicationCacher [5.x] Fix multi-site URL invalidation in ApplicationCacher Feb 2, 2026
@jasonvarga jasonvarga merged commit e55c8b9 into 5.x Feb 2, 2026
30 checks passed
@jasonvarga jasonvarga deleted the fix-multi-site-url-invalidation-on-half-measure branch February 2, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants