module ActionView::Helpers::CacheHelper
def caching?
<% raise StandardError, "Caching private data!" if caching? %>
<% cache project do %>
Useful when certain fragments aren't cacheable:
Returns whether the current view fragment is within a +cache+ block.
def caching? CachingRegistry.caching? end