Skip to content
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

feat: rework how often available is updated #921

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

TurtIeSocks
Copy link
Collaborator

Previously, the available for each of the categories was sent all in one request and this request was only refreshed automatically by the client every few hours, leading to results that weren't always up to date, especially for Pokemon.

Now each of the categories has been split up and the requests are made when the respective quick select menus are opened, meaning they should always be up to date*. Since the results are saved in memory server side, the request payloads take almost no time to execute. They are also very lightweight due to just being an array of strings.

*This is also dependent on your config settings, if your available update interval is set quite low, then your users won't benefit from the latest available. The defaults have been lowered.

@TurtIeSocks TurtIeSocks merged commit ca5bba9 into develop Jan 17, 2024
3 checks passed
@TurtIeSocks TurtIeSocks deleted the available-more-up-to-date branch January 17, 2024 03:00
Copy link

🎉 This PR is included in version 1.29.0-develop.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant