Fix latest commit

This commit is contained in:
𓍼 2025-06-06 12:52:49 -05:00
commit c265e724c9
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ import "./others/warmup.mjs";
const cache = new LRUCache({ const cache = new LRUCache({
maxSize: 1000, maxSize: 1000,
ttl: 345600000, ttl: 60_000,
allowStale: false, allowStale: false,
sizeCalculation: (value, key) => Buffer.byteLength(value) + Buffer.byteLength(key) sizeCalculation: (value, key) => Buffer.byteLength(value) + Buffer.byteLength(key)
}); });

View File

@ -6,7 +6,7 @@ let cache = makeCache(maxKeys);
function makeCache(maxEntries) { function makeCache(maxEntries) {
return new LRUCache({ return new LRUCache({
maxSize: maxEntries, maxSize: maxEntries,
ttl: 4 * 24 * 60 * 60 * 1_000, ttl: 60_000,
allowStale: false, allowStale: false,
updateAgeOnGet: false, updateAgeOnGet: false,
updateAgeOnHas: false, updateAgeOnHas: false,