Explorar o código

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

Dave hai 1 mes
pai
achega
f7969b2029
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;