Skip to content

Delete few static cache pages on saving/updating entry #8573

Discussion options

You must be logged in to vote

You could create a listener that listens for the EntryCreated/EntrySaved events, then do your custom logic in the listener.

We do something similar with a listener: https://steadfastcollective.com/articles/handling-statamic-static-cache-invalidation-on-large-sites

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@imakeitworknet
Comment options

Answer selected by imakeitworknet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants