Follow-up to #2984: dealing with old HTTP download caches #12082
Labels
C: cache
Dealing with cache and files in it
state: needs discussion
This needs some more discussion
state: needs eyes
Needs a maintainer/triager to take a closer look
type: feature request
Request for a new feature
What's the problem this feature will solve?
Once #11143 is merged, new versions of
pip
will use a new HTTP on-disk cache. Old versions will continue to use the old cache, which resides in a different directory.There is a point in time where that old cache really ought to be deleted. For example, after 5 years essentially no one should care about the old HTTP cache, but anyone who keeps around the same home directory will now be wasting disk space. The more time passes, the less likely the old HTTP cache is in broad use by users.
Describe the solution you'd like
As discussed in #11143, after N(==2 to match deprecation policy?) releases or perhaps a certain amount of time, it will become reasonable to assume that most users on the latest version of
pip
have stopped using older versions ofpip
, and therefore the old HTTP cache can be cleaned up.Potential solutions:
pip
older than 2023.X. If you are only using new versions ofpip
, you can clean the cache by doingpip clean --old-http-cache
". (I made that command up, just pretend it's the correct command).Options 1 and 2 probably imply some future issue to rip the code out when it's assumed most users don't have old HTTP caches anymore.
Option 3 is attractive in that essentially the same code could be applied to the new HTTP cache, so it would be helpful for not having infinitely increasing caches which is currently possible.
Alternative Solutions
N/A
Additional context
N/A
Code of Conduct
The text was updated successfully, but these errors were encountered: