Close

Increased cache time

A project log for Skull Counter using API

Display number of skulls for any project on an external website.

alex-richAlex Rich 06/29/2015 at 02:080 Comments

OK last month I hit the api over 30k times and tripped the monthly limit. Instead of refreshing every 30 seconds had to change it to 120. I thought 30s would be fine because it only refreshed when someone was on the page, and i had around 3k visits last month, visit duration avg wasn't more than a couple minutes so it shouldn't have been more than like 12k api queries. Not sure if bots caused the issue or what, but to be safe I increased the refresh time to 120s so it won't go over 21600 api queries.

Discussions