(#3193) Add ability to ignore current http cache #3212
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description Of Changes
The changes here will add a global option that can be used
by the user to ignore any existing http cache that has been
created prior to the execution of the current command.
Using the option will still create a new cache for the running
execution and reuse that created cache in the current context,
and can be reused normally when not using the argument in the
future.
Motivation and Context
To give the user the ability to bypass the cache when needed, as well as being able to bypass the cache in other products we have.
Testing
choco outdated
(To generate an up to date cache)choco outdated --ignore-http-cache
C:\ProgramData\ChocolateyHttpCache
andC:\Users\<YOUR_USERNAME>\.chocolatey\http-cache
choco outdated --ignore-http-cache
(To ensure that cache is created again, but from this call).choco outdated
choco search chocolatey
instead ofchoco outdated
.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Fixes #3193