Skip to content

Allow disabling cache via command lineΒ #7895

@wyqydsyq

Description

@wyqydsyq

Re-open of #1896

There is a very valid use case for wanting to completely disable the cache - Docker.

Best practices for building slim Docker images are to disable or clear caches for all package managers. There is absolutely zero benefit from having cached packages in a Docker image, it just consumes space.

We can of course delete the cache files after in a seperate command - however it seems pretty standard for modern package managers to now offer this as a CLI option, see: PIP, APK, Yarn is also looking at implementing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions