Skip to content

[Fix] Caching in downloadFile #3484

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

Merged
merged 2 commits into from
Feb 1, 2024
Merged

[Fix] Caching in downloadFile #3484

merged 2 commits into from
Feb 1, 2024

Conversation

CommandMC
Copy link
Collaborator

We were looking at the birthtime of the file, which doesn't actually get updated when re-downloading (as such, nothing was ever cached).

A very quick local test suggests that this is working, but I don't have the time to properly test this on multiple systems/OSs right now.

In case this does work as-is everywhere, I've also created the pci_ids_stable_branch branch from our latest release and the two commits, ideally we'd release this ASAP as a 2.12.1.


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

Somewhat of a band-aid fix; ideally we'd be smarter about this caching
in the first place (for example only re-downloading if the user's
hardware changed)
@CommandMC CommandMC requested review from a team, arielj, flavioislima, Etaash-mathamsetty, Nocccer and imLinguin and removed request for a team January 31, 2024 23:00
@Etaash-mathamsetty
Copy link
Member

Etaash-mathamsetty commented Jan 31, 2024

I understand the fix, but why is this so important?
Oh that's bad, that's really bad

Copy link
Member

@Etaash-mathamsetty Etaash-mathamsetty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@flavioislima flavioislima linked an issue Feb 1, 2024 that may be closed by this pull request
@flavioislima flavioislima merged commit b7b736b into main Feb 1, 2024
@flavioislima flavioislima deleted the fix/pci_ids_cache branch February 1, 2024 15:38
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Excessive downloads of pci.ids
3 participants