Преглед изворни кода

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;