From cc3b1146135eb348c02e943cc6d0c525e272b533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Mon, 19 Jun 2023 12:48:00 +0200 Subject: [PATCH] Increase cache TTL 12 hours --- api/source/redis-cache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/source/redis-cache.ts b/api/source/redis-cache.ts index 6f0600480..5122a915e 100644 --- a/api/source/redis-cache.ts +++ b/api/source/redis-cache.ts @@ -8,8 +8,8 @@ import { koaBody } from 'koa-body' const Redis = IORedis.default const RedisMock = IORedisMock.default -// cache expires in 2 hours -const CACHE_EXPIRE = 2 * 60 * 60 +// cache expires in 12 hours +const CACHE_EXPIRE = 12 * 60 * 60 const redis = process.env.NODE_ENV === 'production' && process.env.SCALINGO_REDIS_URL