Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only update sitemap on CMS change #650

Open
mathiazom opened this issue Sep 16, 2024 · 0 comments
Open

Only update sitemap on CMS change #650

mathiazom opened this issue Sep 16, 2024 · 0 comments

Comments

@mathiazom
Copy link
Contributor

mathiazom commented Sep 16, 2024

Currently, the sitemap is generated per request. This is to ensure that all urls are fresh. This approach is very naive, since the sitemap only really changes when the slugs are added or removed in Sanity. Therefore, a more performant approach would be to invalidate the cache each time a slug or added or removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for development
Development

No branches or pull requests

1 participant