Skip to content

[6.x] Flush the dedicated static_cache store on invalidation - #15861

Merged
jasonvarga merged 5 commits into
statamic:6.xfrom
edalzell:fix/invalidator-dedicated-static-cache-store
Nov 12, 2026
Merged

jasonvarga merged 5 commits into
statamic:6.xfrom
edalzell:fix/invalidator-dedicated-static-cache-store

Conversation

@edalzell

@edalzell edalzell commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

With a dedicated static_cache store, static:clear wiped the whole store but content saves under rules: all didn't, because DefaultInvalidator calls ApplicationCacher::flush() directly and that only walks the URL index.

The cachers now wipe the store themselves at the end of flush(), when their repository is the static_cache store, so both paths behave the same. The manager keeps its wipe for the null strategy and StaticCache::extend() drivers.

Closes #15860

@edalzell
edalzell marked this pull request as ready for review November 12, 2026 01:03
@edalzell
edalzell requested a review from jasonvarga November 12, 2026 01:04
@jasonvarga
jasonvarga merged commit e0679ac into statamic:6.x Nov 12, 2026
61 checks passed
@edalzell
edalzell deleted the fix/invalidator-dedicated-static-cache-store branch November 14, 2026 14:30
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.

Invalidation with rules 'all' skips the dedicated static_cache store wipe

2 participants