re-enabled maxAge setting. maxAge is now in seconds, not milliseconds.

This commit is contained in:
Matthias Bartelmeß 2012-03-23 19:28:46 +01:00
parent cccd8a923c
commit c407ad3d34
2 changed files with 6 additions and 5 deletions

View file

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