Caching Strategies
Layered caches to accelerate installs, builds, and analysis.
Dependency caches
- PNPM store: Optimized caching using
pnpm store pathwith component-specific keys - Node modules: Repository-wide and per-component fallback caching
- See PNPM Optimizations for detailed performance improvements
Tool caches
- Turbo:
.turboper job and component - TypeScript:
tsconfig.tsbuildinfo/.tsbuildinfo - ESLint:
.eslintcache - Prettier:
.prettiercache - Knip:
.knip-cache
Build caches
- Build outputs:
dist,build,.next,out,.astro - Next.js incremental cache:
.next/cache
Use stable keys and broad restore keys to improve hit rate.