-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Cache default heatmap responses for 30 days #490
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude ReviewCode duplication: No other significant issues found. |
c33fe2e to
51b52e4
Compare
Claude ReviewPotential Issue: User-specific data being cached globally The cache key includes
Recommendation: Consider either:
Minor: The |
Cache anonymous heatmap API responses for 30 days using Next.js unstable_cache. User-specific requests are not cached to ensure fresh personal progress data. The cache key includes board configuration and filter parameters.
51b52e4 to
5021e99
Compare
Claude ReviewMissing search params in cache key (
If any of these filters are used for heatmap queries, different filter combinations could incorrectly return cached results from different queries. Minor: The |
- Create shared cache-utils.ts with sortObjectKeys function - Update server-cached-client.ts to use shared utility - Update heatmap route to use shared utility - Add missing filter params to heatmap cache key (minRating, onlyClassics, onlyTallClimbs, holdsFilter)
Claude ReviewNo significant issues found. Minor consideration:
|
Add caching to the heatmap API endpoint using Next.js unstable_cache, following the same pattern as the climb list caching. Default heatmap responses (no filters, no user authentication) are cached for 30 days using a cache key that includes board configuration parameters.