app/views/spud/admin/pages/show.html.erb in spud_cms-0.9.21 vs app/views/spud/admin/pages/show.html.erb in spud_cms-1.0.0.RC1
- old
+ new
@@ -2,19 +2,21 @@
<%=content_for :head do%>
<meta name="description" content="<%=@page.meta_description%>" />
<meta name="keywords" content="<%=@page.meta_keywords%>" />
<%end%>
-
-<%if !@inline.blank?%>
- <%=render :inline => @inline%>
-<%end%>
-<%@page.spud_page_partials.each do |page_partial|%>
-
- <%if(page_partial.name.downcase == 'body' && Spud::Cms.yield_body_as_content_block == false)%>
- <%=page_partial.postprocess_content.html_safe%>
- <%else%>
- <%=content_for page_partial.name.parameterize.underscore.to_sym do%>
- <%=page_partial.postprocess_content.html_safe%>
+<%cache @page do%>
+ <%if !@inline.blank?%>
+ <%=render :inline => @inline%>
+ <%end%>
+ <%@page.spud_page_partials.each do |page_partial|%>
+ <%cache page_partial do%>
+ <%if(page_partial.name.downcase == 'body' && Spud::Cms.yield_body_as_content_block == false)%>
+ <%=page_partial.postprocess_content.html_safe%>
+ <%else%>
+ <%=content_for page_partial.name.parameterize.underscore.to_sym do%>
+ <%=page_partial.postprocess_content.html_safe%>
+ <%end%>
+ <%end%>
<%end%>
<%end%>
<%end%>