From fe3cc50df92d34ecf219bb7fbbbd8f3b60bf0fff Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 31 May 2021 16:50:39 -0500 Subject: change basic player cache to only 30 minutes --- build/hypixelCached.js | 4 ++-- src/hypixelCached.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/hypixelCached.js b/build/hypixelCached.js index a922b92..29c0e6a 100644 --- a/build/hypixelCached.js +++ b/build/hypixelCached.js @@ -50,10 +50,10 @@ exports.playerCache = new node_cache_1.default({ checkperiod: 10, useClones: true, }); -// cache "basic players" (players without profiles) for 4 hours +// cache "basic players" (players without profiles) for 30 minutes exports.basicPlayerCache = new lru_cache_1.default({ max: 20000, - maxAge: 60 * 60 * 4 * 1000, + maxAge: 60 * 30, }); exports.profileCache = new node_cache_1.default({ stdTTL: 30, 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 = new LRUCache({ max: 20000, - maxAge: 60 * 60 * 4 * 1000, + maxAge: 60 * 30, }) export const profileCache = new NodeCache({ -- cgit