Skip to content

Caching Strategies

  • PNPM store: Optimized caching using pnpm store path with component-specific keys
  • Node modules: Repository-wide and per-component fallback caching
  • See PNPM Optimizations for detailed performance improvements
  • Turbo: .turbo per job and component
  • TypeScript: tsconfig.tsbuildinfo/.tsbuildinfo
  • ESLint: .eslintcache
  • Prettier: .prettiercache
  • Knip: .knip-cache
  • Build outputs: dist, build, .next, out, .astro
  • Next.js incremental cache: .next/cache

Use stable keys and broad restore keys to improve hit rate.