diff --git a/index.mjs b/index.mjs index 8dce7130..64b578b5 100644 --- a/index.mjs +++ b/index.mjs @@ -57,7 +57,7 @@ import "./others/warmup.mjs"; const cache = new LRUCache({ maxSize: 1000, - ttl: 345600000, + ttl: 60_000, allowStale: false, sizeCalculation: (value, key) => Buffer.byteLength(value) + Buffer.byteLength(key) }); diff --git a/others/scaler.mjs b/others/scaler.mjs index 15ac37c9..32c69bf1 100644 --- a/others/scaler.mjs +++ b/others/scaler.mjs @@ -6,7 +6,7 @@ let cache = makeCache(maxKeys); function makeCache(maxEntries) { return new LRUCache({ maxSize: maxEntries, - ttl: 4 * 24 * 60 * 60 * 1_000, + ttl: 60_000, allowStale: false, updateAgeOnGet: false, updateAgeOnHas: false,