With Sitefinity CMS, you can configure the way your content and pages is cached which affects the overall performance of your system.
You can configure the following types of cache:
Output caching happens at the page level (including personalized pages) where Sitefinity CMS caches all rendered output, including widgets. Sitefinity CMS caches a different cache variation for each personalization segment of the page. On widget level, Sitefinity CMS performs cache substitution whenever a widget has an inherent dynamic behavior. For example, this is the case of the login name, login status, and so on. Sitefinity CMS also has output cache for anonymous forum users.
Sitefinity CMS performs post cache substitution – these widgets are written using Razor syntax and right after the cached page is about to be served, Sitefinity CMS injects the string that the widget's HTML output into the response.
Output cache is stored in the memory and is cleared on application start.
You can have only one default cache profile, which is used by default for all pages. You can, however, change the cache profile on page level. Thus, you have different cache behaviors for different pages (sections of your site). Once a page is requested, and if the page is not found on the server output cache, Sitefinity CMS reads the output cache and output cache profile settings to determine whether it should add the page in cache and with what settings. Each consecutive request for the same page is served from cache, unless:
By default, Sitefinity CMS output cache varies by user agent (web browser), meaning that the system creates different cached versions of the page depending on the user agent (web browser) the page is requested from.
Output cache is disabled by default for logged in users that have backend (administrative) access and are browsing the site. Thus, the users can observe the effect of their changes immediately.
In addition, you can configure CDN storage support for media items. For more information, see Use CDN storage for content libraries.
Sitefinity CMS supports page compilation caching. For more information, see Tips for optimizing performance » Force pages to compile.
Page compilation caching is stored in ASP.NET temporary folder. This way, it is persistent between restarts.
To enable database caching, click Administration » Settings » Advances » Data.
In Enable data caching, enter true or false.
This setting controls the setting of the Open Access 2nd level cache.
In single instance mode, database caching is turned on by default. As of Sitefinity CMS 7.1, in NLB mode database caching is turned on by default, as well.
If your site is configured to use output caching, custom widgets are cached with the entire page. You can disable caching page by page and you can also leverage the post-cache substitution mechanism. Sitefinity CMS exposes a class called CacheSubstitutionWrapper and, if you wanted to inject dynamic content onto cached pages, you can take advantage of this infrastructure without hindering performance.
By default, output cache is not invalidated on changing the page permissions.
You can change this by clicking Administration » Settings » Advanced » Pages and deselect Disable Output cache invalidation when permission is changed checkbox. We do not recommend deselecting this option, because any change of permissions will invalidate the output cache of all pages.
The output of RSS feeds in Sitefinity CMS is cached the same way as the page output caching.
Output caching in RSS results in less database queries and improves the overall performance of the website.
The RSS caching is not automatically invalidated upon a change in the content that is published in the feed. This means that until the cache expires (sliding or absolute) the feed will not be updated.
The caching profile of the RSS is set for all RSS feeds.
To setup the caching of the RSS feeds, perform the following:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity