Administration: Configure cache profiles
You control the output and client cache using cache profiles, which you can configure in the following way:
- Click Administration » Settings.
The Basic Settings page appears. - Click Advanced link.
The Settings page appears. - In the left pane, click System » Output Cache Settings.
Global cache settings
Global cache settings are applied to all pages and libraries, unless explicitly specified otherwise. You can enable or disable both caching profiles via the following checkboxes:
- Enable Output Cache
Controls the page and widget output cache. If you disable output cache, no pages are cached regardless of the programmatic or declarative settings. - Enable Client Cache
Controls whether client cache is globally enabled. If you disable client cache, no resources are cached on the client browser.
NOTE: By default, both cache options are enabled.
If you enable output or client cache, you need to specify the default profile for each. Output and client cache come with a predefined set of profiles.
You can create your own custom cache profile and specify its properties.
Following is a list and description of the default caching profiles.
Type of caching | Default caching profiles |
Output cache | - No caching
Output caching is disabled. Output is not cached. - Standard caching
This is the default profile for all content. Cache is set to expire in 120 seconds. Sliding Expiration option is enabled. - Long caching
Cache is set to expire in 1200 seconds absolute time. |
Client cache | - No caching
Client caching is disabled. No expiration of the content is set and the page is loaded as it is in real time for every page request. - Standard caching
This is the default profile for all content. Cache is set to expire 90 days after the request. - Long caching
Cache is set to expire 1 year after the request. - No Explicit Client Caching
Client caching is disabled. No Cache-Control header value is sent to the client as a response. |
You can click on each profile and edit its properties.
You can have only one default cache profile, which is used by default for all pages.
You can set cache profiles to individual pages or libraries. If no profile is set to a page or library, the default profile is applied. You can change the default profiles and you can globally turn on and off output and client caching, regardless of individual settings made on pages and libraries.
NOTE: Sitefinity CMS does not support distributed caching and AppFabric.
Set memory size used for caching
You can set the maximum size of the items that are cached. Items larger that the predefined size are not cached. You do this in the cache profiles, described above.
NOTE: The maximum amount of memory to be used for cache is equal to the maximum size of items cached times the number of pages.
You can set the maximum cache size for Sitefinity CMS on application pool level in IIS. This setting is useful when you have multiple sites hosted on the same server and you want to set a limit on the resource use for each site. This way, the application pool automatically resets itself when its size limit is reached.
To set this, perform the following:
- Open IIS Manager.
- Expand you server node and click Application Pools.
- Select your application pool and in the right pane, click Advanced Settings.
- Under Recycling, you can set the Private Memory Limit.
Set cache profile on page level
Apart from the global cache settings you define in Sitefinity CMS Administration, you can set a cache profile for a specific page or library. To do so:
- Go to Pages.
- Select the page whose cache options you need to configure. Click Actions » Title & Properties.
- Expand the Advanced options node.
- Under Caching options, expand the dropdown menu and select the output cache profile you require for your page.
NOTE: You can choose from the default output cache profiles. If you created custom cache profiles, you can see them in the list as well. - Save your changes
Set cache profile on library level
For libraries, you can configure both output and client cache options. For example, you can configure the cache options of the Images library. To do so:
- Go to Content » Images.
- Select the library whose cache options you need to configure. Click Actions » Edit properties.
- Expand the Root library settings node.
- To select a client cache profile, under Browser caching, expand the dropdown menu. Select the required profile.
NOTE: You can choose from the default client cache profiles. If you created custom cache profiles, you can see them in the list as well. - To select an output cache profile, under Server caching, expand the dropdown menu. Select the required profile.
NOTE: You can choose from the default output cache profiles. If you created custom cache profiles, you can see them in the list as well. - Save your changes.
Additionally, on library level, you can configure CDN storage support. For more information, see Use CDN storage for content libraries.