Increase cache TTL 12 hours

pull/2723/head
Jérémy Rialland 2023-06-19 12:48:00 +02:00 committed by Jérémy Rialland
parent c61144abfc
commit cc3b114613
1 changed files with 2 additions and 2 deletions

View File

@ -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