Browse Source

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

Dave 1 month ago
parent
commit
f7969b2029
1 changed files with 1 additions and 1 deletions
  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;