Sign in through GitHub

RailsCasts Pro episodes are now free!

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.