aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-31 16:50:39 -0500
committermat <github@matdoes.dev>2021-05-31 16:50:39 -0500
commitfe3cc50df92d34ecf219bb7fbbbd8f3b60bf0fff (patch)
treeef915fe79f2be06dc74f5b0e633fd8cbc103a99c /src/hypixelCached.ts
parent647fa7e63607d3eca328374974548ac9128383b2 (diff)
downloadskyblock-api-fe3cc50df92d34ecf219bb7fbbbd8f3b60bf0fff.tar.gz
skyblock-api-fe3cc50df92d34ecf219bb7fbbbd8f3b60bf0fff.tar.bz2
skyblock-api-fe3cc50df92d34ecf219bb7fbbbd8f3b60bf0fff.zip
change basic player cache to only 30 minutes
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index d9e718e..aab5407 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -34,10 +34,10 @@ export const playerCache = new NodeCache({
useClones: true,
})
-// cache "basic players" (players without profiles) for 4 hours
+// cache "basic players" (players without profiles) for 30 minutes
export const basicPlayerCache: LRUCache<string, CleanPlayer> = new LRUCache({
max: 20000,
- maxAge: 60 * 60 * 4 * 1000,
+ maxAge: 60 * 30,
})
export const profileCache = new NodeCache({