Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Benjamin Manns's Profile

GitHub User: benmanns

Site: http://benmanns.com

Comments by Benjamin Manns

Avatar

You could include the things that can change in the cache key, like <% cache [post, user.admin?] do %>, but then you lose some of the automatic cache invalidation that cache digests provide when nesting cache fragments.