When is sitemap() invoked and best practices? #62029
Replies: 1 comment
-
Use cach system to revalidate your data when needed.
|
Beta Was this translation helpful? Give feedback.
-
Use cach system to revalidate your data when needed.
|
Beta Was this translation helpful? Give feedback.
-
I'm reading the docs for sitemap. It states
However, it doesn't say anything about when this function is invoked. I assume it's invoked at build time, but this raises some issues / questions:
sitemap()
is invoked. In my case, it'll fetch every record in a large database table of posts. This could become costly if I have to rebuild my site multiple times in one day.Any advice on this front would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions