Using Rails 3, is it possible to detect to see inside of the layout or a before_filter to see if an action is going to be cached and if there is a cache hit for that action?
caches_index :something, :layout => false
So for example (inside application.html.erb)
<%= yield %>
<% @is_cached == ... %>
Is it possible to do it before and/or after yield call to the item?
I’m using fragment caching this way: