瀏覽代碼

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;