From bfad0e4ea10dbf2ca22a32208509d94ee1d24556 Mon Sep 17 00:00:00 2001 From: litencatt Date: Thu, 21 Dec 2023 19:09:38 +0900 Subject: [PATCH] Extend dbs cache ttl to 1H --- src/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.ts b/src/cache.ts index 4ec964d..a823097 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -3,7 +3,7 @@ import * as notion from "./notion" export const getDatabases = async () => { const dbsKey = "dbs" - const ttlInSeconds = 300 + const ttlInSeconds = 3600 const cachedDbs = await redis.get(dbsKey) if (cachedDbs) { return JSON.parse(cachedDbs)