FRAGMENTS - SHARED

<% cache_fragment(:test_fragment, :shared) do %>

<%= "Shared Fragment created: #{Time.now.strftime("%Y-%m-%d %H:%M:%S")}" %>

<% sleep 1 %> <% end %>

Content After Sleep

<%= "Time is now: #{Time.now.strftime("%Y-%m-%d %H:%M:%S")}" %>