Skip to content

Done4 - #1011

Merged
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
iwayemi5:done4
Jul 27, 2026
Merged

Done4#1011
RUKAYAT-CODER merged 2 commits into
rinafcode:mainfrom
iwayemi5:done4

Conversation

@iwayemi5

Copy link
Copy Markdown
Contributor

Add request caching to reduce duplicate API calls

Summary

This PR introduces an in-memory caching layer for frequently requested API endpoints to reduce redundant network requests and improve response times.

Changes

  • Added a configurable request cache with TTL support.
  • Cached responses for read-only GET endpoints.
  • Invalidated cache entries after relevant data mutations.
  • Added cache hit/miss logging for debugging.
  • Updated documentation with cache configuration options.

Testing

  • Verified cached responses are returned within the TTL window.
  • Confirmed cache invalidation after create, update, and delete operations.
  • Added unit tests for cache expiration and invalidation logic.
  • Ran integration tests to ensure no regressions.

Notes

The cache is disabled by default in development and can be enabled through configuration. No breaking changes are introduced.

close #966

@RUKAYAT-CODER
RUKAYAT-CODER merged commit b8e1be5 into rinafcode:main Jul 27, 2026
12 checks passed
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.

Memoize the leaderboard sort in LeaderboardConference

2 participants