aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-04 13:12:37 -0500
committermat <github@matdoes.dev>2022-06-04 13:12:37 -0500
commit1b6b520d21e86c2bdeda487b9be8febc924026d7 (patch)
tree263852b86495e7184b95910f56afe677aa008f21 /src
parent379954771b1a8c95dbe0a51bb4b2c52e8738fc73 (diff)
downloadskyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.tar.gz
skyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.tar.bz2
skyblock-api-1b6b520d21e86c2bdeda487b9be8febc924026d7.zip
Re-enable achievements and lower basicPlayerCache max
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/achievements.ts2
-rw-r--r--src/hypixelCached.ts2
2 files changed, 1 insertions, 3 deletions
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<string, CleanPlayer> = new LRUCache({
- max: 10000,
+ max: 1000,
ttl: 60 * 20 * 1000,
})