Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pmuk
7y ago
0 comments
Share
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.
0 comments
default
newest
oldest
franky47
7y ago
It refreshes every 5 seconds, and uses the data from the petition JSON API (just add .json to a petition URL).
pmuk
OP
7y ago
Do you store the results locally on your server so that it isn't making multiple requests for each visitor?
j
/
k
navigate · click thread line to collapse