Caching Strategies
Dependency caches
Section titled “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
Section titled “Tool caches”- Turbo:
.turboper job and component - TypeScript:
tsconfig.tsbuildinfo/.tsbuildinfo - ESLint:
.eslintcache - Prettier:
.prettiercache - Knip:
.knip-cache
Build caches
Section titled “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.