mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
Allow customisation of cache expiration via envvars
This commit is contained in:
+1
-1
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user