From c6e1e498c5564535a071ea53fc82a5028dfeb813 Mon Sep 17 00:00:00 2001 From: Vitor Coelho <6161176+VitorCoelho@users.noreply.github.com> Date: Tue, 20 Oct 2026 11:15:44 -0300 Subject: [PATCH] fix(config): read CACHE_LOCAL_TTL for the local cache TTL CACHE.LOCAL.TTL was parsed from CACHE_REDIS_TTL, so CACHE_LOCAL_TTL (documented in env.example) was ignored and the local cache used the Redis TTL instead. --- src/config/env.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/env.config.ts b/src/config/env.config.ts index 1b17a83b53..a394da2c99 100644 --- a/src/config/env.config.ts +++ b/src/config/env.config.ts @@ -882,7 +882,7 @@ export class ConfigService { }, LOCAL: { ENABLED: process.env?.CACHE_LOCAL_ENABLED === 'true', - TTL: Number.parseInt(process.env?.CACHE_REDIS_TTL) || 86400, + TTL: Number.parseInt(process.env?.CACHE_LOCAL_TTL) || 86400, }, }, S3: {