소스 검색

fix(channel): reduce Redis cache duration from 24 hours to 1 hour

Dave 1 개월 전
부모
커밋
f7969b2029
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/box-app-api/src/feature/channel/channel.service.ts

+ 1 - 1
apps/box-app-api/src/feature/channel/channel.service.ts

@@ -42,7 +42,7 @@ export class ChannelService {
 
       if (channel) {
         // Store in Redis cache for future requests
-        await this.redis.setJson(cacheKey, channel, 24 * 3600); // Cache for 24 hours
+        await this.redis.setJson(cacheKey, channel, 1 * 3600); // Cache for 1 hour
       }
 
       return channel;