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!
Full article: http://railscasts.com/episodes/387-cache-digests
@RacingOnRails
»
21 Oct '12, 1am
@mxtagregator
»
21 Oct '12, 1am
@ischroedi
»
21 Oct '12, 1am