What Is Task Graph Caching?
Task graph caching is a build-tool technique that hashes the inputs of each task in the dependency graph and stores its outputs under that hash. When a task's inputs are unchanged, the tool restores the cached output rather than executing the task again. Combined with a shared backend, results are reused across machines.
Why it matters
Modeling a build as a graph of cacheable tasks means only the tasks downstream of an actual change ever run, and everything else is a cache hit. This is the engine behind fast incremental monorepo builds. Sharing the cache across CI runners turns one runner's work into a free hit for the next, cutting build minutes.
Related guides
What Is a Monorepo Affected Graph?A monorepo affected graph is the set of projects impacted by a change, computed from the dependency graph so…
What Is a Remote Cache Backend?A remote cache backend is shared storage where build and test caches live so many machines and CI runs can re…
What Is Cache Warming?Cache warming pre-populates a cache before it is needed so the first real requests hit a ready cache instead…