We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c4f71 commit b69c817Copy full SHA for b69c817
news/12257.feature.rst
@@ -0,0 +1 @@
1
+Store HTTP caching headers in ``~/.cache/pip/fetch-resolve`` to reduce bandwidth usage when ``--use-feature=metadata-cache`` is enabled.
src/pip/_internal/cli/req_command.py
@@ -506,7 +506,7 @@ def _build_package_finder(
506
ignore_requires_python=ignore_requires_python,
507
)
508
509
- if options.cache_dir:
+ if bool(options.cache_dir) and ("metadata-cache" in options.features_enabled):
510
fetch_resolve_cache = FetchResolveCache(options.cache_dir)
511
else:
512
fetch_resolve_cache = None
0 commit comments