From b1afb6ea44bc9191f3e9ee9bb57853ee477d63c0 Mon Sep 17 00:00:00 2001 From: Innei Date: Fri, 16 Jun 2023 10:59:55 +0800 Subject: [PATCH] chore: server cache Signed-off-by: Innei --- apps/core/src/app.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/core/src/app.config.ts b/apps/core/src/app.config.ts index ec2a9aee..73d79eff 100644 --- a/apps/core/src/app.config.ts +++ b/apps/core/src/app.config.ts @@ -66,7 +66,7 @@ if (argv.config) { Object.assign(argv, config) } -const { PORT: ENV_PORT, ENABLE_CACHE_DEBUG, MX_ENCRYPT_KEY } = process.env +const { PORT: ENV_PORT, MX_ENCRYPT_KEY } = process.env export const PORT = argv.port || ENV_PORT || 2333 export const API_VERSION = 2 @@ -111,8 +111,8 @@ export const REDIS = { port: argv.redis_port || 6379, password: argv.redis_password || null, ttl: null, - httpCacheTTL: 5, - max: 5, + httpCacheTTL: 15, + max: 120, disableApiCache: false, }