From 1b6b520d21e86c2bdeda487b9be8febc924026d7 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 4 Jun 2022 13:12:37 -0500 Subject: Re-enable achievements and lower basicPlayerCache max --- src/cleaners/achievements.ts | 2 -- src/hypixelCached.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts index 367e14a..9d25535 100644 --- a/src/cleaners/achievements.ts +++ b/src/cleaners/achievements.ts @@ -77,8 +77,6 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe lockedChallengeAchievements.push(achievement) } - // temporarily disabled - return { tiered: [], challenge: [] } return { tiered: tieredAchievements, challenge: [ diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index a233380..6f91e22 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -40,7 +40,7 @@ export const playerCache = new NodeCache({ // cache "basic players" (players without profiles) for 20 minutes export const basicPlayerCache: LRUCache = new LRUCache({ - max: 10000, + max: 1000, ttl: 60 * 20 * 1000, }) -- cgit