From 54a37d73afd0179be0c43df3b14c3f3ea4af5cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Mon, 25 Jan 2021 14:24:01 +0900 Subject: [PATCH] chore: caching smaller --- utils/Query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Query.ts b/utils/Query.ts index 8b913c7..039b2bf 100644 --- a/utils/Query.ts +++ b/utils/Query.ts @@ -252,7 +252,7 @@ export const get = { user: new DataLoader( async (urls: string[]) => (await Promise.all(urls.map(async (url: string) => await getImage(url)))) - , { cacheMap: new TLRU({ maxStoreSize: 5000, maxAgeMs: 43200000 }) }), + , { cacheMap: new TLRU({ maxStoreSize: 500, maxAgeMs: 43200000 }) }), } }