Skip to content

Commit a64df68

Browse files
committed
Improve documentation of caching and the cache subcommand.
1 parent 02bd116 commit a64df68

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/html/topics/caching.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ While this cache attempts to minimize network activity, it does not prevent
2727
network access altogether. If you want a local install solution that
2828
circumvents accessing PyPI, see {ref}`Installing from local packages`.
2929

30+
In versions prior to 23.2, this cache was stored in a directory called `http` in
31+
the main cache directory (see below for its location). In 23.2 and later, a new
32+
cache format is used, stored in a directory called `http-v2`. If you have
33+
completely switched to newer versions of `pip`, you may wish to delete the old
34+
directory.
35+
3036
(wheel-caching)=
3137

3238
### Locally built wheels
@@ -124,11 +130,11 @@ The {ref}`pip cache` command can be used to manage pip's cache.
124130

125131
### Removing a single package
126132

127-
`pip cache remove setuptools` removes all wheel files related to setuptools from pip's cache.
133+
`pip cache remove setuptools` removes all wheel files related to setuptools from pip's cache. HTTP cache files are not removed at this time.
128134

129135
### Removing the cache
130136

131-
`pip cache purge` will clear all wheel files from pip's cache.
137+
`pip cache purge` will clear all files from pip's wheel and HTTP caches.
132138

133139
### Listing cached files
134140

0 commit comments

Comments
 (0)