Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

TheChosenWong on "How to cache API requests with a limit?"

$
0
0

I'm currently pulling data from an API which is limited to 10 requests per 10 seconds. I have a table which pulls information from 10 users and a plugin called W3 Cache stores that data.

What if I have, lets say, 15 requests when I reload the page. Normally I get an error message from my requests because I went over the limit. Is there a way to cache what data it can, then slowly collect more data and fill in the table as every 10 seconds pass.

When I use W3 Cache it just caches the error message along with 10 out of 15 of my user's information.


Viewing all articles
Browse latest Browse all 8245

Trending Articles