Skip to content

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

Open
edalzell wants to merge 5 commits into
statamic:6.xfrom
edalzell:fix/invalidator-dedicated-static-cache-store
Open

edalzell wants to merge 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

This branch has not been deployed

No deployments
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

1 participant