caching-strategies
Installation
SKILL.md
Caching Strategies for Rails 8
Overview
Rails provides multiple caching layers:
- HTTP caching: ETags and
fresh_whenfor 304 Not Modified - Fragment caching: Cache view partials
- Russian doll caching: Nested cache fragments with
touch: true - Low-level caching: Cache arbitrary data with
Rails.cache.fetch - Collection caching: Efficient cached rendering of collections
- Solid Cache: Database-backed caching (Rails 8 default, no Redis)