No cache is expensive, can I invalidate static cache url where my cache tag is invalidated? #10160
-
I have tried using In the case of the navigation example thought about using:
with an event listener set up:
but this is irrelevant if using static caching. I thought about doing:
but this is still not performant, and i'm questioning if logically it's even worth doing. I was hoping there was a way I could programmatically find all URLs that have this cache tag and invalidate the URLs after the cache tag has been invalidated to ensure only pages affected by a relative update are invalidated and regenerated. This way I could have performant development and efficient static caching invalidation and regeneration. I realise I could create a custom invalidator for each of these tags, but what I'm struggling with is how to easily identify urls that would qualify because the cache tag with the relevant key is present. Not sure how to identify this. Has anyone tried to achieve this before? Or is there a much simpler solution I've completely missed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
https://github.com/thoughtco/statamic-cache-tracker is what I was remembering. |
Beta Was this translation helpful? Give feedback.
-
We have a similar add on - https://github.com/thoughtco/statamic-cache-tracker - it doesnt require a database so may be more suitable. |
Beta Was this translation helpful? Give feedback.
We have a similar add on - https://github.com/thoughtco/statamic-cache-tracker - it doesnt require a database so may be more suitable.