Add staleWhileRevalidate to SQ leaderboard

This commit is contained in:
Kalle
2026-09-06 13:20:25 +03:00
parent c543428445
commit 98957ddf59

View File

@@ -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,
});
}