Skip to content

Add a leaderboard loading grace period#215

Merged
Jack-Khuu merged 3 commits intomainfrom
more-cache
Mar 6, 2026
Merged

Add a leaderboard loading grace period#215
Jack-Khuu merged 3 commits intomainfrom
more-cache

Conversation

@Jack-Khuu
Copy link
Collaborator

@Jack-Khuu Jack-Khuu commented Mar 5, 2026

Even with the initial loading check (#212), the cache return time is still triggering a loading screen. This PR adds a grace period (200ms) for the cache to return, before the loading screen tries render


Screen.Recording.2026-03-05.at.7.12.03.PM.mov

@Jack-Khuu Jack-Khuu requested review from msaroufim and yangw-dev March 5, 2026 00:01
@msaroufim
Copy link
Member

Not sure I fully understand how our cache is working right now. Will lean on Yang to merge

@Jack-Khuu Jack-Khuu changed the title More cache Add a leaderboard loading grace period and a fast_cache experiment Mar 5, 2026
@yangw-dev
Copy link
Collaborator

yangw-dev commented Mar 6, 2026

i'm fine with the ui changes to introduce graceperiod for loading, but i don't think the full response cache works,
ppl constantly submit the code, the ttl=1 then just add extra complexity, and make the server constantly calls redis to update. let's just keep things simple

@Jack-Khuu Jack-Khuu changed the title Add a leaderboard loading grace period and a fast_cache experiment Add a leaderboard loading grace period Mar 6, 2026
@Jack-Khuu
Copy link
Collaborator Author

Removed fast-cache

@Jack-Khuu Jack-Khuu merged commit 4793322 into main Mar 6, 2026
1 check passed
Jack-Khuu added a commit that referenced this pull request Mar 6, 2026
msaroufim pushed a commit that referenced this pull request Mar 6, 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.

3 participants