浏览代码

feat: update cache life

Alexandru Cambose 3 月之前
父节点
当前提交
b633b3e2fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/insights/src/cache.ts

+ 1 - 1
apps/insights/src/cache.ts

@@ -9,7 +9,7 @@ const transformer = {
   deserialize: parse,
   deserialize: parse,
 };
 };
 
 
-export const DEFAULT_CACHE_TTL = 86_400; // 24 hours
+export const DEFAULT_CACHE_TTL = 3600; // 1 hour
 export const DEFAULT_CACHE_STALE = 86_400; // 24 hours
 export const DEFAULT_CACHE_STALE = 86_400; // 24 hours
 
 
 export const redisCache: ACDCache = createCache({
 export const redisCache: ACDCache = createCache({