nx
nx copied to clipboard
Cache busting!
As a wise man once said "There are two things difficult in software programming, naming, cache invalidation, and count by 0 errors".
Description
We currently use Nx to cache our builds so that references to libs are not required to be rebuilt if there are no changes to its source. The problem is that every time something has to be rebuilt it stores a new cache and keeps the original. We tried to invest some time into removing older cache items but we found that we were reverse engineering your cache system. What I would really love to see is Nx cache invalidate itself.
Motivation
Cache invalidation is required (it takes up a lot of disk space when apps are 500mb x 1000s of cache folders)
Suggested Implementation
Psuedo code.... if (cacheIsInvalid) { removeOldCache() // This is the part I believe to be missing runBuildAndCreateNewCache() }