adding the cleanup routines
[nodejs-repoproxy.git] / lib / cache.js
index 9e5e8da..b7f111d 100644 (file)
@@ -3,19 +3,6 @@ var http = require("http");
 var url = require("url");
 var path = require("path");
 
-function maintainCache() {
-       // TODO i should check that im already running here and exit if i am
-       console.log("Cache maintainence routine starting...");
-       console.log("Cache maintainence routine ended...");
-}
-
-exports.startTimer = function() {
-       // our once-a-day cache maintainer
-       var cacheTimer = global.repoproxy.scancache*3600*1000;
-       //var cacheTimer = global.repoproxy.scancache*100;
-       setInterval(maintainCache, cacheTimer);
-}
-
 function upstreamRequest(unify) {
        // first do a head request
        console.log("upsteram as ", unify.requestFor);