mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-13 14:46:10 -05:00
Add staleWhileRevalidate to SQ leaderboard
This commit is contained in:
@@ -24,6 +24,7 @@ export function cachedUserSQLeaderboardTopData() {
|
||||
key: SQ_LEADERBOARD_TOP_CACHE_KEY,
|
||||
cache,
|
||||
ttl: ttl(IN_MILLISECONDS.TWO_HOURS),
|
||||
staleWhileRevalidate: ttl(IN_MILLISECONDS.TWO_DAYS),
|
||||
getFreshValue: userSQLeaderboardTopData,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user