Explorar o código

feat: update cache life

Alexandru Cambose hai 3 meses
pai
achega
b633b3e2fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/insights/src/cache.ts

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

@@ -9,7 +9,7 @@ const transformer = {
   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 redisCache: ACDCache = createCache({