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

add new forceCache option to Updater #575

Merged
merged 2 commits into from
Jan 9, 2024
Merged

add new forceCache option to Updater #575

merged 2 commits into from
Jan 9, 2024

Conversation

bdehamer
Copy link
Collaborator

@bdehamer bdehamer commented Jan 8, 2024

Adds a new forceCache option to the Updater class which can be used to force the loading of cached metadata files in scenarios where all of the metadata is in a non-expired state. This can help to limit fetches against the remote TUF repository in situations where it's desirable to minimize network access.

When forceCache is set to true the Updater will load all metadata from the local cache and only attempt an update from the remote repository if some of the metadata is missing/corrupt/expired.

@bdehamer bdehamer requested a review from a team as a code owner January 8, 2024 23:46
@bdehamer bdehamer requested a review from ejahnGithub January 8, 2024 23:46
@bdehamer bdehamer force-pushed the bdehamer/force-cache branch from a5e5ceb to 9b4b516 Compare January 8, 2024 23:46
@bdehamer bdehamer merged commit d7c2600 into main Jan 9, 2024
24 checks passed
@bdehamer bdehamer deleted the bdehamer/force-cache branch January 9, 2024 18:47
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