Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove expired caches. #188

Open
jdalton opened this issue Jul 17, 2017 · 0 comments
Open

Remove expired caches. #188

jdalton opened this issue Jul 17, 2017 · 0 comments

Comments

@jdalton
Copy link
Contributor

jdalton commented Jul 17, 2017

If you split the cache file name in two:
Say 8 chars of md5 of the filepath and then the last 8 chars are md5 of esm version, config, mtime, etc. Then you can detect and remove old entries that start with the first 8 but don't have the current last 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant