diff options
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/server.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node/server.js b/src/node/server.js index 19df6e72..8e6d6fa0 100644 --- a/src/node/server.js +++ b/src/node/server.js @@ -51,8 +51,9 @@ console.log("Report bugs at https://github.com/Pita/etherpad-lite/issues") var serverName = "Etherpad-Lite " + version + " (http://j.mp/ep-lite)"; -//cache 6 hours -exports.maxAge = 1000*60*60*6; +//cache 6 hours, by default +var hour = 60*60; +exports.maxAge = settings.maxAge || 6 * hour; //set loglevel log4js.setGlobalLogLevel(settings.loglevel); |