Configuration
What’s cached
Caching for production
Cache configuration
config/*.php files into a single cached file. Must be re-run after any config change.
Cache routes
Clear all caches
Database cache tables
Best practices
- Development: Use
fileordatabasedriver — no setup needed - Production: Use
redisfor speed and scalability - Always cache config and routes in production
- Clear cache after deployments
- Don’t cache user-specific data in shared cache — use session instead