RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: benmanns
Site: http://benmanns.com
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 %>
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.