X-Git-Url: http://git.pjr.cc/?p=nodejs-repoproxy.git;a=blobdiff_plain;f=lib%2Fcache.js;fp=lib%2Fcache.js;h=b7f111d98d61c570db7aae0ed026843a83f112b0;hp=9e5e8daf2cb5b630d86f9a91cc25ecf9a1c0ce86;hb=04f3190a0bcc430af31917456a957ecc80eb160b;hpb=43d51752ca1aafe7212ee3805ba1b33e398c91ce diff --git a/lib/cache.js b/lib/cache.js index 9e5e8da..b7f111d 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -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);