Skip to content

Commit

Permalink
remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bradoyler committed Jul 5, 2014
1 parent 0d16480 commit 7925fe9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ module.exports.cacheSeconds = function(ttl) {
var cache = cachestore.get(req.path);

if (cache) {
console.info('routecache hit');
res.send(cache);
} else {
var send = res.send;
res.send = function(string) {
var body = string instanceof Buffer ? string.toString() : string;
console.info('routecache\'d: ' + req.path, ' length: ' + body.length);
cachestore.put(req.path, body, ttl);
send.call(this, body);
};
Expand Down

0 comments on commit 7925fe9

Please sign in to comment.