Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Benjamin Manns's Profile

GitHub User: benmanns


Comments by Benjamin Manns


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.