cirandas.net

ref: master

app/views/shared/block.html.erb


<% if block.cacheable? && use_cache %>
  <% cache_timeout(block.cache_key(language, user), block.timeout) do %>
    <%= display_block_content(block, main_content) %>
  <% end %>
<% else %>
  <%= display_block_content(block, main_content) %>
<% end %>