rafaelgomesxyz / esgst

An extension that enhances SteamGifts / SteamTrades.
MIT License
147 stars 23 forks source link

Cache user data for Group Library/Wishlist Checker Feature #1745

Open poetickatana opened 2 years ago

poetickatana commented 2 years ago

Is your enhancement request related to a problem? Please describe. The Group Library/Wishlist Checker feature fetches Steam ID/library/wishlist data for all users every time it runs. This generates a lot of traffic to Steam and can take several minutes to complete for groups with several hundred people.

Describe the solution you'd like. User libraries and wishlists don't change appreciably over short periods of time (e.g. 1 month). Also, precise data is not required for this feature to be useful. Assuming storage is not a limitation, the operation can be sped up significantly if all the Steam user data was cached locally, similar to the way data for the Whitelist/Blacklist Checker is cached. There could be an option to clear the cache manually or perhaps to refresh a cached user entry automatically if it's older than X days.

Describe alternatives you've considered. None.

Additional Context I imagine storage space might be a limitation. If so, you can have caching OFF by default and make it a toggleable option under settings.