Skip to content

Instantly share code, notes, and snippets.

@sminnee
Created February 1, 2010 21:47
Show Gist options
  • Select an option

  • Save sminnee/292062 to your computer and use it in GitHub Desktop.

Select an option

Save sminnee/292062 to your computer and use it in GitHub Desktop.
Index: themes/blackcandy/templates/Page.ss
===================================================================
--- themes/blackcandy/templates/Page.ss (revision 97920)
+++ themes/blackcandy/templates/Page.ss (working copy)
@@ -26,6 +26,7 @@
<body>
<div id="BgContainer">
<div id="Container">
+ <% cacheblock 'blackcandy_header', ID, Aggregate(SiteTree).Max(LastEdited), SiteConfig.LastEdited %>
<div id="Header">
$SearchForm
<h1>$SiteConfig.Title</h1>
@@ -37,6 +38,7 @@
</div>
<div class="clear"><!-- --></div>
+ <% end_cacheblock %>
<div id="Layout">
$Layout
Index: themes/blackcandy/templates/Layout/Page.ss
===================================================================
--- themes/blackcandy/templates/Layout/Page.ss (revision 97920)
+++ themes/blackcandy/templates/Layout/Page.ss (working copy)
@@ -1,9 +1,10 @@
<div class="typography">
+ <% cacheblock 'blackcandy_content', ID, Aggregate(Page).Max(LastEdited) %>
<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>
-
+
<% if Level(2) %>
<% include BreadCrumbs %>
<% end_if %>
@@ -16,8 +17,6 @@
<% if Menu(2) %>
</div>
<% end_if %>
-</div>
-
-
-
\ No newline at end of file
+ <% end_cacheblock %>
+</div>
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment