Cache Granularity vs Build Speed: Per‑Dependency vs Full Requirements Cache Invalidation
Goal Determine the optimal cache invalidation strategy for Read the Docs builds that balances build speed against the risk of serving stale documentation when dependencies change. Constraints & Uncertainty Read the Docs uses an internal hash of the requirements.txt to decide whether to reuse cached build artifacts. The hashing algorithm is not exposed, a