Configure caching on a page or library level

PREREQUISITES: You must have setup the output and client caching profiles. For more information, see Administration: Configure cache profiles.

Cache for pages

Regardless of the type of output cache that is set globally for the entire site, you can setup output cache individually for each page.

You do this when you create the page or edit its properties.
Perform the following:

  1. In the Pages grid and click the Actions » Title & Properties.
  2. Expand Advanced options section.
    In Caching options dropdown box, the default value for a page caching is As set for the whole site.
  3. To change the default page caching, select either No Caching or select one of the output caching profiles that you have pre-configured.
  4. Click Save changes.
    The output cache for this particular page is set differently that the output caching of the entire website.

EXAMPLE: You want to set standard output caching of 200 seconds for the entire site, but you want only one particular page not to be cached at all. To do this, you configure the Standard Caching output cache profile to expire after 200 seconds. Then, you set this profile as default output caching profile for the entire site. Finally, you edit the properties of the page that you do not want to cache and set No Caching.

Cache for libraries

Regardless of the type of client cache that is set globally for the entire site, you can setup client cache individually for each root library. This cache setting will apply to all folders of the root library.

You do this when you create the root library or edit its properties.
Perform the following:

  1. Expand the Actions link of the root library whose cache you want to modify and click Edit Properties.
  2. Expand Root library settings section.
    In Browser caching dropdown box, the default value for a page caching is As set for the whole site.
  3. To change the default root library caching, select either No Caching or select one of the client caching profiles that you have pre-configured.
  4. Click Save changes.
    The client cache for this particular root library and its folders is set differently that the client caching of the entire website.

EXAMPLE: You want to set standard client caching of 50 days for the entire site, but you want only one particular root library not to be cached at all. To do this, you configure the Standard Caching client cache profile to expire after 50 days. Then, you set this profile as default client caching profile for the entire site. Finally, you edit the properties of the root library that you do not want to cache and set No Caching.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?