-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate longer cache times #66
Comments
Hi, taking a look at the issue |
The cache TTL has been fixed, names and profiles should be properly updating now. |
What's the cache time right now? If it's 1 hour is still pretty long. |
@Electroid the longer cache time issue seems to still be persisting. User |
@Electroid additionally, querying user |
I think cache time is set to 60 hours |
Right now it's a random time between 1 and 24 hours. This is obviously not great, but otherwise there are too many 429 errors and nothing can get updated. I've been working on a rewrite, since December, which is able to get around these limitations. It's about a week or two away from being rolled out. After that, the cache time will be about 5 minutes. |
You have a backup server that you mentioned some time ago, 429 errors depend on cloudflare itself too, but caching 1 player for such a long time is not a good solution. |
There is so much volume, even the backups (there are multiple servers) are getting rate limited. As I said, this is a temporary solution until the new system is rolled out. |
Looking forward to the rewrite! Out of curiosity, how's it being done? Are you just upping the amount of requester nodes and doing a round-robin style? Is there a branch we can see the progress on? |
Maybe create a password type of key to limit some users which may make too many requests. |
@Electroid Any update on getting the new API rolled out? |
@Electroid Any progress on the updated API? |
The TTL must be too high, an account created on Mar 18 is still appearing as 404 Not Found on 23 Mar 😵💫🤔 |
We are having the same problem. An account changed his name two weeks ago and account still appears as 404 |
The user
d659e53b3f9e4488818fa2d0732789ae
changed their username tojji
4 days ago (Dec 26), but the API is currently returning their old username,Dxw
(link). Queryingjji
will result in a 404 (link).I inspected your code and it seems like the cahce TTL is only 1 hour for this endpoint, so idk why it would be out of date by 4 days.
The text was updated successfully, but these errors were encountered: