System Information
- Strapi Version: 4.21
- Operating System: Ubuntu
- Database: sqlite
- Node Version: 18
- NPM Version: 9.2
- Yarn Version: 1.22
Hello to the community
We are developing a website with strapi/next. We seek to make it as efficient as possible and are using strapi’s webhook to revalidate next cache only when needed.
Our pages have dynamic zones which can content relations towards other pages. Exemple :
- I have a page “Harbour practical details”
- I have an article “History of the harbour”
- My article has a dynamic zone inside which i add a bloc that contains a relation towards “Harbour practical details”, the bloc displays a card with title, image and description from “Harbour practical details”
My question is the following, when “Harbour practical details” is updated, how can i know that i have to revalidate the page “History of the harbour” ? I would like to avoid having to revalidate all my articles since they all potentially have a relation towards that page.
A potential way to solve this is in my webhook logic would be to fetch all articles filtering one the one that have a bloc containing “Harbour practical details” but in my use case i have 6 CTs that potentially have such a bloc, that would mean fetch all 6 CTs and i was wondering if there was a more efficient way.