adding cache control
[nodejs-repoproxy.git] / proxy.js
index 770e7dc..65cf726 100644 (file)
--- a/proxy.js
+++ b/proxy.js
@@ -1,12 +1,16 @@
 var http = require("http");
 var config = require("./lib/config.js");
 var router = require("./lib/router.js");
+var cache = require("./lib/cache.js");
 
 
 // first we load the config...
+console.log("Loading configuration");
 config.loadConfig("./repos.conf");
 
-console.log("globals: ", global.repoproxy);
+
+console.log("Starting cache maintenance timer");
+cache.startTimer();
 
 // next we start our main request loop
 http.createServer(router.routeRequest).listen(global.repoproxy.listenPort);