j0k3r / worldcup-slack-bot

WorldCupBot will notify a Slack channel/group for every match during a FIFA World Cup
MIT License
39 stars 29 forks source link

Store Etag in “db” to avoid hiting rate limit #7

Closed j0k3r closed 6 years ago

j0k3r commented 6 years ago

I save the Etag of all requests so it'll avoid sending too much requests. Only the player url isn't cached because we always need a response from it.

What do you thin @andyworsley?

Related https://github.com/j0k3r/worldcup-slack-bot/issues/5

andyworsley commented 6 years ago

Yep, looks good.