Hacker News new | ask | show | jobs
by pmuk 2653 days ago
Does your site cache the numbers? It could be really useful to take some of the load off the main petition's site, as people keep going there and refreshing the page which is overloading it.
1 comments

It refreshes every 5 seconds, and uses the data from the petition JSON API (just add .json to a petition URL).
Do you store the results locally on your server so that it isn't making multiple requests for each visitor?