Okay.  Will update that.  Will see how fast that page changes.  Maybe 10 minutes is enough.  


On Thursday, April 25, 2013 at 5:41 AM, Lim Chee Aun wrote:

> In server.js:
> > + } > + > + var body = ''; > + r.on('data', function (chunk){ body += chunk; }); > + r.on('end', function(){ > + var window = domino.createWindow(body); > + window._run(jquery); > + var $ = window.$; > + > + var comments = [], > + commentRows = $('tr:nth-child(3) tr:has(span.comment)'); > + comments = processComments(commentRows, $); > + > + var commentsJSON = JSON.stringify(comments); > + // Comments stream faster, that's why halving the cache time > + cache.set(path, commentsJSON, CACHE_EXP / 2);  
> CACHE_EXP is there because we have to be nice to HN's servers Halving it won't really do much except getting the server banned or responses getting throttled.
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/cheeaun/node-hnapi/pull/6/files#r3956363).
>  
>  
>