Is it normal that `named_caches` gets very large o...
# general
h
Is it normal that
named_caches
gets very large over time? I use pex inside my devcontainer and mounted the
named_caches
directory so that it persists over rebuilds. But I a few weeks later I saw that this directory grew to 40GB in size. I don't want to delete the whole directory, because rebuilding takes much time. I use pants export to export the virtual env which is quite fast when having
named_caches
.
h
Yes, that seems normal. The
named_caches
cache all the parts of all your pexes/dists. There is structure sharing, so you don't have multiple copies of the same wheels, but it does all add up. There is no cache eviction logic.