Skip to content

Instantly share code, notes, and snippets.

@jonathanselander
Created June 14, 2012 12:21
Show Gist options
  • Save jonathanselander/2929967 to your computer and use it in GitHub Desktop.
Save jonathanselander/2929967 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!--
/**
* @package Made_Cache
* @author info@madepeople.se
* @copyright Copyright (c) 2012 Made People AB. (http://www.madepeople.se/)
*/
-->
<layout version="0.1.0">
<default>
<cache>
<!--
Render "left" with a custom lifetime, the default is
9999999999 seconds
-->
<name lifetime="86400">left</name>
<name>cms_page</name>
<name>head</name>
<name>breadcrumbs</name>
<name>before_body_end</name>
<name>product.info</name>
<name>product_list</name>
<name>category.products</name>
<name lifetime="7200">cart_sidebar</name>
</cache>
<!--
Example of blocks that typically should render using ESI, this
is only used if Varnish is actually in front of Magento
-->
<esi>
<name>cart_sidebar</name>
<name>catalog.compare.sidebar</name>
<name>right.reports.product.viewed</name>
<name>right.reports.product.compared</name>
<name>left.reports.product.viewed</name>
<name>google_analytics</name>
</esi>
</default>
<checkout_onepage_index>
<nocache>
<name>root</name>
<name>content</name>
</nocache>
</checkout_onepage_index>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment