benjamn / reify

Enable ECMAScript 2015 modules in Node today. No caveats. Full stop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove expired caches.

jdalton opened this issue · comments

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.