Skip to content

Add in-memory caching to leaderboard endpoints#141

Merged
msaroufim merged 1 commit intomainfrom
slow_load
Feb 7, 2026
Merged

Add in-memory caching to leaderboard endpoints#141
msaroufim merged 1 commit intomainfrom
slow_load

Conversation

@msaroufim
Copy link
Member

Cache responses from /api/leaderboard-summaries and /api/leaderboard/ with a 60-second TTL to avoid running expensive SQL queries on every request. Follows the same pattern used in the events API.

Cache responses from /api/leaderboard-summaries and /api/leaderboard/<id>
with a 60-second TTL to avoid running expensive SQL queries on every request.
Follows the same pattern used in the events API.
@msaroufim msaroufim merged commit 7c3ffd0 into main Feb 7, 2026
1 check passed
msaroufim added a commit that referenced this pull request Feb 7, 2026
msaroufim added a commit that referenced this pull request Feb 7, 2026
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.

1 participant