WatWowMap / ReactMap

Pokemon GO Map frontend built with React
MIT License
130 stars 64 forks source link

feat: rework how often available is updated #921

Closed TurtIeSocks closed 9 months ago

TurtIeSocks commented 9 months ago

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.

github-actions[bot] commented 9 months ago

:tada: This PR is included in version 1.29.0-develop.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: