Skip to content

Commit

Permalink
lower ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaps authored and Brutus5000 committed Nov 21, 2023
1 parent 58517b7 commit 7324782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/LeaderboardService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const leaderboardTTL = 60 * 60 * 4 // 4 hours ttl as a relaxation for https://github.com/FAForever/website/issues/482
const leaderboardTTL = 60 * 60 // 1 hours ttl as a relaxation for https://github.com/FAForever/website/issues/482

class LeaderboardService {
constructor(cacheService, mutexService, leaderboardRepository, lockTimeout = 3000) {
Expand Down
2 changes: 1 addition & 1 deletion tests/LeaderboardService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ test('full scenario', async () => {
expect(cacheSetSpy).toHaveBeenCalledTimes(1);

const date = new Date()
date.setSeconds(date.getSeconds() + (60 * 60 * 4) + 1)
date.setSeconds(date.getSeconds() + (60 * 60) + 1)
jest.setSystemTime(date);

// start another with when the cache is stale
Expand Down

0 comments on commit 7324782

Please sign in to comment.