Provide ability to use option for Chocolatey CLI commands to skip cached HTTP query results #1014
Description
Checklist
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my problem.
- I have verified this is not an issue for a specific package.
- I have verified this issue is not security related.
What You Are Seeing?
In Chocolatey CLI 2.0.0, we introduced the NuGet.Client libraries, which by default cache a number of HTTP queries, so that they can be re-used when required. This was further extended in the 2.1.0-alpha's of Chocolatey CLI, to address issues with performance problems. By introducing these caches, we need the ability to ignore the cached results for certain commands. In order to make use of the --ignore-http-cache
option that was added in Chocolatey CLI, Chocolatey GUI needs to be extended to allow setting of this option through the Advanced Installation
workflow.
What is Expected?
There are times when we want to make sure that we get the most recent results to outgoing queries, rather than previously cached queries. At the same time, we don't want to clear all the cache, so rather skip the cache for the current process. It should be possible to ignore the cache when doing the Advanced Installation
workflow within Chocolatey GUI.
This should be done in a backwards-compatible way, so that it isn't necessary to bump to the latest Chocolatey CLI version when introducing this functionality. It should only be available when the installed version Chocolatey CLI is capable of performing this operation.
How Did You Get This To Happen?
There really aren't any steps to reproduce this problem, it is just a feature that needs to be implemented now that we are caching queries that are used within Chocolatey CLI.
System Details
- Operating System: Windows 10
- Windows PowerShell version: 5.1
- Chocolatey CLI Version: 2.0.0
- Chocolatey Licensed Extension version: N/A
- Chocolatey License type: Open Source
- Terminal/Emulator: Windows PowerShell
Installed Packages
N/A
Output Log
N/A
Additional Context
This is related to this issue here: chocolatey/choco#3193
Activity