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

fix: Add cache for sanity language query #1147

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

mathiastorhaug
Copy link
Contributor

We had a issue where we would query sanity for supported languages for each field in our schemas. This would result in over 100 api requests on some pages, draining our total api requests

Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
variant-no ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 8:07am
variant-se-2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 28, 2025 8:07am

We had a issue where we would query sanity for supported languages for each field in our schemas. This would result in over 100 api requests on some pages, draining our total api requests
@mathiastorhaug mathiastorhaug force-pushed the add-cache-for-language-query-sanity branch from 448b51a to dd5fe9e Compare January 28, 2025 08:03
Copy link
Contributor

@anemne anemne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👌

@mathiastorhaug mathiastorhaug merged commit ca9a65f into v3 Jan 28, 2025
6 checks passed
@mathiastorhaug mathiastorhaug deleted the add-cache-for-language-query-sanity branch January 28, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants