# #387 Cache Digests

> Episode of [RailsCasts](https://podistic.com/podcast/railscasts.md) · Published October 20, 2012 · Duration 7:39

- **Listen on Podistic:** https://podistic.com/episode/387-cache-digests
- **Video:** http://media.railscasts.com/assets/episodes/videos/387-cache-digests.mp4 (video/mp4)

## About this episode

The cache_digests gem (also included in Rails 4) will automatically add a digest to the fragment cache key based on the template. If a template changes the cache will auto-expire. But watch out for the gotchas!
