Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: benmanns
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.
<% cache [post, user.admin?] do %>