Platform Administration and Architecture

Configure HTML/component cache values

Abstract

How to configure Sitecore Content Delivery HTML/component cache values.

Applies to

Content Delivery

The HTML cache (also known as the output cache or component cache) contains the output generated by individual renderings under different conditions. To configure HTML/component cache values:

  • Create a patch file for the <sites> element and set the htmlCacheSize attribute for each of your sites as in the following example:

    <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" 
    xmlns:set="http://www.sitecore.net/xmlconfig/set/">
        <sitecore>
            <sites>
                <site name="website" set:htmlCacheSize="300MB"></site>
                <site name="customsite" set:htmlCacheSize="300MB"></site>
            </sites>
        </sitecore>
    </configuration>

See Configure HTML caching for information about caching options at component level.