Allow customisation of cache expiration via envvars

This commit is contained in:
mgarciaisaia
2021-05-27 01:02:35 -03:00
parent 220136bae6
commit 61e0c455fc
+1 -1
View File
@@ -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
},
}