From 61e0c455fcceb0d2933872bd5703313fa592a0ec Mon Sep 17 00:00:00 2001 From: mgarciaisaia Date: Thu, 27 May 2021 01:02:35 -0300 Subject: [PATCH] Allow customisation of cache expiration via envvars --- config.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js.template b/config.js.template index ad5c00f..bacc955 100644 --- a/config.js.template +++ b/config.js.template @@ -36,7 +36,7 @@ const config = { * given URL is revisited). */ setexs: { - wikipage: 60 * 60 * 1, // 1 hour + wikipage: process.env.WIKIPAGE_CACHE_EXPIRATION || (60 * 60 * 1), // 1 hour }, }