summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-03-23 19:28:46 +0100
committerMatthias Bartelmeß <mba@fourplusone.de>2012-03-23 19:28:46 +0100
commitc407ad3d3499ab1142b740fb0c6163be68e5dfe3 (patch)
tree0e90a985b5c12c0eb7425549e256f42b96b989d5 /src/node
parentcccd8a923cfa21c7e248a2a5fcffa54caf512e0b (diff)
downloadetherpad-lite-c407ad3d3499ab1142b740fb0c6163be68e5dfe3.zip
re-enabled maxAge setting. maxAge is now in seconds, not milliseconds.
Diffstat (limited to 'src/node')
-rw-r--r--src/node/server.js5
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);