{"id":4689,"date":"2023-12-29T03:10:59","date_gmt":"2023-12-29T03:10:59","guid":{"rendered":"https:\/\/www.qedge.co\/blog\/?p=4689"},"modified":"2025-08-19T00:17:47","modified_gmt":"2025-08-19T00:17:47","slug":"sitecore-recommended-cache-settings","status":"publish","type":"post","link":"https:\/\/www.qedge.ai\/blog\/sitecore-recommended-cache-settings.html","title":{"rendered":"Sitecore Recommended Cache Settings"},"content":{"rendered":"\n<p><strong>Optimizing Sitecore Caching for Faster Page Loads<\/strong><\/p>\n\n\n\n<p>For modern websites, speed is everything. Research shows that even a 1-second delay in page load time can cause a 7% loss in conversions. With the average attention span getting shorter all the time, slow-loading pages are a quick way to lose visitors.<\/p>\n\n\n\n<figure class=\"wp-block-image alignfull size-full\"><a href=\"https:\/\/www.qedge.co\/Contact#wffmf1f815b7a3f64287be724ca9a289125b\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1242\" src=\"https:\/\/www.qedge.co\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-scaled.jpg\" alt=\"\" class=\"wp-image-4694\" srcset=\"https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-scaled.jpg 2560w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-768x373.jpg 768w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-1536x745.jpg 1536w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-2048x994.jpg 2048w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-1920x932.jpg 1920w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-720x349.jpg 720w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-580x281.jpg 580w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Faster-Sitecore_new-320x155.jpg 320w\" sizes=\"auto, (max-width: 2560px) 100vw, 2560px\" \/><\/a><\/figure>\n\n\n\n<p>For <a href=\"https:\/\/www.qedge.co\/blog\/sitecore-enterprise-content-management.html\" target=\"_blank\" rel=\"noreferrer noopener\">content management systems like Sitecore<\/a>, optimizing caching is one of the most impactful ways to improve site performance. Effective use of Sitecore's robust caching capabilities can dramatically speed up page load times, but the settings need to be tuned properly for each unique situation.<\/p>\n\n\n\n<p>Below we'll explore Sitecore's various caching features and best practices for configuring cache settings depending on factors like traffic patterns, content update frequency, and more. With the right strategy, you can leverage caching to deliver lightning-fast page loads that engage users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Overview of Caching in Sitecore<\/h2>\n\n\n\n<p>Sitecore offers several different cache types that store data in memory for faster retrieval. The main ones are:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"516\" src=\"https:\/\/www.qedge.co\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore.png\" alt=\"Caching system in Sitecore.png\" class=\"wp-image-4700\" srcset=\"https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore.png 810w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore-768x489.png 768w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore-720x459.png 720w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore-580x369.png 580w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Caching-system-in-Sitecore-320x204.png 320w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTML Cache<\/strong> - Caches the fully rendered HTML output for pages to avoid repetitive backend rendering on each request.<\/li>\n\n\n\n<li><strong>Data Cache<\/strong> - Caches raw data items retrieved from the database so they don't have to be queried every time.<\/li>\n\n\n\n<li><strong>Registry Cache<\/strong> - Stores system-level .NET objects like configurations and dependency injection registrations.<\/li>\n\n\n\n<li><strong>Query Cache<\/strong> - Caches the datasets returned by content queries.<\/li>\n\n\n\n<li><strong>Object Cache<\/strong> - Provides general-purpose caching for arbitrary application data like API responses.<\/li>\n<\/ul>\n\n\n\n<p>Caching speeds things up by avoiding unnecessary backend work on repeated requests. However, it takes some extra tuning and system resources. The trick is maximizing the performance benefits while minimizing any downsides.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Caching Factors to Consider<\/h2>\n\n\n\n<p>There are several key factors to evaluate when configuring <a href=\"https:\/\/www.qedge.co\/blog\/sitecore-performance-issues.html\" target=\"_blank\" rel=\"noreferrer noopener\">Sitecore caching for optimal performance<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"1621\" src=\"https:\/\/www.qedge.co\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider.jpg\" alt=\"\" class=\"wp-image-7502\" srcset=\"https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider.jpg 800w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider-768x1556.jpg 768w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider-758x1536.jpg 758w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider-720x1459.jpg 720w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider-580x1175.jpg 580w, https:\/\/www.qedge.ai\/blog\/wp-content\/uploads\/2023\/12\/Key-Caching-Factors-to-Consider-320x648.jpg 320w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Sitecore Caching Settings<\/h2>\n\n\n\n<p>With those factors in mind, let's look at how to configure Sitecore's various cache types for optimal results.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Setting HTML Cache Expiration<\/h3>\n\n\n\n<p>The HTML cache expiration timeout determines how long a page's rendered output stays cached in memory. This is set in the <code>&lt;htmlCache&gt;<\/code> section of <code>Sitecore.config<\/code>.<\/p>\n\n\n\n<p>Typical HTML cache lifetimes range from <strong>5 minutes to 24 hours<\/strong>. Shorter expirations accommodate frequent content changes, while longer values provide more performance benefit.<\/p>\n\n\n\n<p>Consider <a href=\"https:\/\/wputopia.com\/contact\/316.php\" target=\"_blank\" rel=\"noopener\">setting HTML cache<\/a> expiration to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>5-15 minutes<\/strong> for extremely dynamic sites with edits multiple times an hour.<\/li>\n\n\n\n<li><strong>2-6 hours<\/strong> for average content sites with fairly regular publishing.<\/li>\n\n\n\n<li><strong>12-24 hours<\/strong> for highly static sites with infrequent updates.<\/li>\n<\/ul>\n\n\n\n<p>You can also set exceptions for certain site sections - like caching product category pages for longer periods.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuring the Data Cache<\/h3>\n\n\n\n<p>The data cache stores raw content retrieved from the database for reuse. This helps avoid hitting the database with the same queries repeatedly.<\/p>\n\n\n\n<p>The <strong>standard data cache size is 50MB<\/strong> per Sitecore instance - suitable for average sites. For large data sets and high traffic sites, <strong>increase the size to 200-500MB<\/strong> or more.<\/p>\n\n\n\n<p>You can set different data cache sizes per database by defining <code>&lt;dataCache&gt;<\/code> configs for each one under <code>&lt;databases&gt;<\/code>. Monitor cache hit ratios over time and tweak sizes accordingly.<\/p>\n\n\n\n<p>Data cache expiration is also important. The default lifetime is <strong>20 minutes<\/strong>, which suits moderately dynamic content. For more static sites, <strong>consider values like 1-6 hours<\/strong> to improve cache hits.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tuning the Registry Cache<\/h3>\n\n\n\n<p>The .NET registry cache stores application-level objects like Sitecore configurations, services, and more. This avoids expensive rebuilding of these objects on each request.<\/p>\n\n\n\n<p>The default registry cache size is <strong>15MB<\/strong>. For high-traffic sites, <strong>increasing to 25-50MB<\/strong> can help minimize registry cache misses and rebuilds.<\/p>\n\n\n\n<p>Unlike other caches, the registry cache <strong>does not expire items<\/strong>. Entries only invalidate if dependent objects change during an app restart. Keep the size in check on memory-constrained systems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enabling the Query Cache<\/h3>\n\n\n\n<p>Sitecore's query cache stores results of content queries - avoiding repetitive queries on each page view. This requires enabling the <code>&lt;enableQueryCache&gt;<\/code> setting.<\/p>\n\n\n\n<p>The <strong>default query cache size is 5MB<\/strong>. Boost this to <strong>25-100MB<\/strong> for query-heavy public sites. Monitor cache statistics over time and adjust as needed.<\/p>\n\n\n\n<p>Also, set explicit <strong>cache expiration timeouts<\/strong> on high-value queries. The default is 30 minutes, but you can go up to 24 hours for extremely static result sets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Leveraging the Object Cache<\/h3>\n\n\n\n<p>Sitecore's general object caching is great for storing shared data like external API responses. This avoids the overhead of calling those services repeatedly.<\/p>\n\n\n\n<p>The standard object cache size is <strong>5MB<\/strong>. For object cache-heavy scenarios like headless, increase to <strong>50-200MB<\/strong> based on traffic and data volumes.<\/p>\n\n\n\n<p>Tune <strong>object expiration<\/strong> timeouts based on the dynamics of each cached item. For example, 24 hours for rate limit statuses from an API provider.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Profiling Cache Usage<\/h2>\n\n\n\n<p>Once you've configured caching settings, profile your cache usage over time:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Monitor hit ratios<\/strong> - This reveals how well cache sizes are tuned. Tweak sizes up or down to aim for high hit percentages.<\/li>\n\n\n\n<li><strong>Check expiration efficiency<\/strong> - See if expiration timeouts are appropriate based on hits within those windows. Adjust timeouts as needed.<\/li>\n\n\n\n<li><strong>Identify cache-friendly pages<\/strong> - HTML cache hits highlight pages best suited for full page caching. Focus optimization efforts there.<\/li>\n\n\n\n<li><strong>Fix cache bottlenecks<\/strong> - Isolate any overly shared cached objects that cause contention. Break them into smaller domain-specific caches.<\/li>\n<\/ul>\n\n\n\n<p>With data-driven refinements over time, you can achieve highly o<a href=\"https:\/\/www.qedge.co\/blog\/optimize-sitecore-website-speed.html\" target=\"_blank\" rel=\"noreferrer noopener\">ptimized Sitecore caching and blazing fast load times<\/a>. Proper caching is one of the best and most cost-effective performance wins available.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Achieving Cache Zen<\/h2>\n\n\n\n<p>Caching is a complex balance with many factors in play. There is no single best practice - only optimal settings for each unique situation. Like a Zen master, strive for cache enlightenment through continuous learning and refinement.<\/p>\n\n\n\n<div class=\"wp-block-group alignwide\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-buttons alignwide is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-50\"><a class=\"wp-block-button__link has-typology-bg-color has-electric-grass-gradient-background has-text-color has-background has-link-color has-normal-font-size has-custom-font-size wp-element-button\" href=\"https:\/\/www.qedge.co\/Contact\" target=\"_blank\" rel=\"noopener\">let's talk<\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<p>With a data-driven approach, you can maximize Sitecore caching benefits while minimizing resource usage and complexity. Fast page loads lead to happy users, and happy users lead to successful sites.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Optimizing Sitecore Caching for Faster Page Loads For modern websites, speed is everything. Research shows that even a 1-second delay in page load time can cause a 7% loss in conversions. With the average attention span getting shorter all the time, slow-loading pages are a quick way to lose visitors. For content management systems like [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4690,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-4689","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-insights"],"views":6528,"_links":{"self":[{"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/posts\/4689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/comments?post=4689"}],"version-history":[{"count":13,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/posts\/4689\/revisions"}],"predecessor-version":[{"id":7930,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/posts\/4689\/revisions\/7930"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/media\/4690"}],"wp:attachment":[{"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/media?parent=4689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/categories?post=4689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qedge.ai\/blog\/wp-json\/wp\/v2\/tags?post=4689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}