chocolatey / ChocolateyGUI

A delicious GUI for Chocolatey
https://docs.chocolatey.org/en-us/chocolatey-gui/
Apache License 2.0
1.61k stars 248 forks source link

Provide ability to use option for Chocolatey CLI commands to skip cached HTTP query results #1014

Closed gep13 closed 1 year ago

gep13 commented 1 year ago

Checklist

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

Installed Packages

N/A

Output Log

N/A

Additional Context

This is related to this issue here: https://github.com/chocolatey/choco/issues/3193

choco-bot commented 1 year ago

:tada: This issue has been resolved in version 2.1.0 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: