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

Stop caching Thunderstore API responses to file #1275

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

anttimaki
Copy link
Collaborator

No description provided.

@anttimaki anttimaki requested a review from MythicManiac March 19, 2024 15:55
The response is now stored on disk by IndexedDB, so having a separate
file for this is redundant.

This also changes a bit how Splash screens handle the mod list update.
The new process is:

1. Request fresh list from Thunderstore API
2. If response was received, store it in IndexedDB
3. Populate Vuex from IndexedDB. If there was no response from the API
   this step also acts as reading the old values from persistent cache
4. If the mod list was received from API or read from cache, proceed
   to profile selection; otherwise show the offline mode disclaimer
Update the exclusion list (if not already done), filter the response
for excluded packages, and store the rest into IndexedDB in one fell
swoop.
@anttimaki anttimaki force-pushed the ts-mods-last-updated branch from 8c50dae to b25a965 Compare April 3, 2024 13:20
@anttimaki anttimaki force-pushed the drop-apicacheutils branch from 2c4e8fe to 3e9f018 Compare April 3, 2024 13:21
@anttimaki anttimaki marked this pull request as ready for review April 3, 2024 13:22
Base automatically changed from ts-mods-last-updated to develop April 15, 2024 06:29
@anttimaki anttimaki merged commit 3108fc6 into develop Apr 15, 2024
7 checks passed
@anttimaki anttimaki deleted the drop-apicacheutils branch April 15, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants