Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can I purge old and outdated cache files? #13291

@otakustay

Description

@otakustay

Feature request

On out CI system we upload webpack's cache to a storage after each build and download them on the next build to speed up build.

After about 6 months, we find there is a 800MB cache directory with more than 100 .pack files in this cache, causing slower and slower download time.

What is the expected behavior?

We'd like to see an API to purge outdated cache content from these files, we can then run purge monthly, a slow purge process is acceptable since this runs only once per month.

What is motivation or use case for adding/changing the behavior?

Try to limit cache size in long term.

How should this be implemented in your opinion?

Maybe we should have a {purge: true} in cache configuration

Are you willing to work on this yourself?

Not able to do that

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions