Plan and implement caching across application layers
Design caching strategy for {{APPLICATION}}:
Current bottlenecks:
{{BOTTLENECKS}}
Caching layers to implement:
1. **Browser cache**: HTTP headers, service worker
2. **CDN cache**: Edge caching for static assets
3. **Application cache**: In-memory (L1) + Redis (L2)
4. **Database cache**: Query result caching, materialized views
5. **API cache**: Response caching with ETags
Provide:
- Cache hierarchy diagram
- TTL strategy for each layer
- Cache invalidation patterns
- Cache warming scripts
- Monitoring and metrics
- Cost analysis
- Implementation plan with phasesImproving application performance