Repository navigation
[6.x] Wipe the static cache store before deleting files on flush - #15991
Merged
Merged
Conversation
edalzell
marked this pull request as ready for review
November 21, 2026 19:38
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #15861,
FileCacher::flush()deletes the HTML files and then wipes the dedicatedstatic_cachestore. A page rendered in between keeps its HTML on disk but loses the nocache regions it just stored, so withrules: allany save can leave a page with empty{{ nocache }}placeholders until the next full flush.flush()now clears the URL index and the store first, then deletes the files. The middleware writes the HTML before the nocache data, so a file that survives the flush was written after the wipe and still has its regions. The store is still wiped on invalidation, so #15861's behaviour is unchanged.Closes #15983