From 55d5d936d7ccc2b78ea1de6f07e71f9e1e2c9b74 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 1 Jun 2021 15:12:22 -0500 Subject: Revert "Revert "Revert "temporarily disable leaderboard cache""" This reverts commit f111a9a1db78fbfe0737661f3c9104f52d6de945. --- src/database.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/database.ts b/src/database.ts index f5c313c..577bd6a 100644 --- a/src/database.ts +++ b/src/database.ts @@ -313,7 +313,7 @@ async function fetchMemberLeaderboardRaw(name: string): Promise leaderboardReverse ? a.value - b.value : b.value - a.value) .slice(0, 100) - // cachedRawLeaderboards.set(attributeName, newRawLeaderboard) + cachedRawLeaderboards.set(attributeName, newRawLeaderboard) } if (debug) console.debug('added member to leaderboards', member.username, leaderboardAttributes) @@ -645,7 +645,7 @@ export async function updateDatabaseProfile(profile: CleanFullProfile): Promise< }]) .sort((a, b) => leaderboardReverse ? a.value - b.value : b.value - a.value) .slice(0, 100) - // cachedRawLeaderboards.set(attributeName, newRawLeaderboard) + cachedRawLeaderboards.set(attributeName, newRawLeaderboard) } if (debug) console.debug('added profile to leaderboards', profile.name, leaderboardAttributes) -- cgit