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

DEV: Add caching to the leaderboard page #107

Merged
merged 5 commits into from
Aug 16, 2023
Merged

Conversation

oblakeerickson
Copy link
Member

This commit adds caching for the leaderboard page to improve
performance.

This commit adds caching for the leaderboard page to improve
performance.
@oblakeerickson oblakeerickson marked this pull request as ready for review August 16, 2023 15:01
Copy link
Contributor

@pmusaraj pmusaraj 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.

Can we add a test spec to the controller? I was thinking it would be useful to have two test cases:

  1. on a second request to the route as a logged-in user, ensure that the query path isn't hit
  2. on a second request after cache timeout (4hrs), ensure query path is hit

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

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

Thanks!

@oblakeerickson oblakeerickson merged commit 24e4804 into main Aug 16, 2023
5 checks passed
@oblakeerickson oblakeerickson deleted the leaderboard-cache branch August 16, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants