Skip to content

Instantly share code, notes, and snippets.

@komainu85
Last active August 29, 2015 14:19
Show Gist options
  • Save komainu85/87be96ba49856b4ae3f4 to your computer and use it in GitHub Desktop.
Save komainu85/87be96ba49856b4ae3f4 to your computer and use it in GitHub Desktop.
Sitecore Site Patch Include
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<events>
<event name="publish:end">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site force="add">websiteName</site>
</sites>
</handler>
</event>
<event name="publish:end:remote">
<handler type="Sitecore.Publishing.HtmlCacheClearer, Sitecore.Kernel" method="ClearCache">
<sites hint="list">
<site force="add">websiteName</site>
</sites>
</handler>
</event>
</events>
<sites>
<site patch:before="*[@name='scheduler']" name="websiteName" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" hostName="websiteName" startItem="/home" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="20MB" registryCacheSize="1MB" viewStateCacheSize="0" xslCacheSize="5MB" filteredItemsCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false"/>
</sites>
<cacheSizes>
<sites>
<websiteName>
<html>20MB</html>
<registry>1MB</registry>
<viewState>1MB</viewState>
<xsl>5MB</xsl>
</websiteName>
</sites>
</cacheSizes>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment