diff options
author | 2019-09-15 23:49:56 +0200 | |
---|---|---|
committer | 2019-09-15 23:49:56 +0200 | |
commit | a02e8b7610589838e69190c94f2821bda2f73cba (patch) | |
tree | 0f8c7bfa4c8ae5826b4f006f7c11f359c0cd8770 /.gitattributes | |
parent | PARENT_HOST is now pythondiscord.com (diff) |
Fix a bug where GitHub API rate limit could crash Home.
The bug was caused by a naive approach to caching and retrieving the data.
This commit rectifies this by making the following changes:
- We will now cache for 1 hour instead of 10 minutes
- If the data is stale but API is rate limited, return cache, not crash.
- If the cache doesn't exist and API is rate limited, return dummy data,
and try again in 10 minutes.
This will prevent all crashes, and should still have more or less the same user experience.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions