Configure page output cache settings

Anonymous and authenticated cache profiles are available, and they optimize the utilization of the cache based on the authentication methods that are allowed on the site. The page output cache profile specifically affects publishing sites.



Manage the page output cache

Each front-end Web server uses the page output cache to store rendered output of all controls in a given page, and then store several different variations of this pre-rendered page.

After a page is first rendered for a user in a given user class, each subsequent time that the user views that page in the same class, the page loads faster because the controls on the .aspx page do not need to run again to generate the HTML. The amount of time required to render the page is reduced. The page output cache can improve server performance because it reduces server control activities and calls to the database.

When a page request is rendered from the page output cache, the server does not need to do the following work:

  • Fetch the source code or any Web Part components from the database.
  • Reload and render each control.
  • Query any database servers that the control might rely on for its data.

 Note   Additional memory is required on the front-end Web server because each version of each page will use RAM for page output caching.

Top of Page Top of Page

Configure page output cache settings for a site collection

  1. Click Site Action menu, point to Site Settings, and then click Modify All Site Settings.
  2. In the Site Collection Administration section, click Site collection output cache.
  3. To enable output caching in the site collection, click the Enable output cache check box.

A list of cache settings is displayed on the page.

  1. In the Default Page Output Cache Profile section, in the Anonymous Cache Profile list, select the cache profile to use for anonymous users, and then, in the Authenticated Cache Profile list, select the cache profile to use for authenticated users.

This optimizes the use of the cache based on the authentication methods allowed on the site. Page output cache profiles specifically affect portal publishing pages.

  1. In the Page Output Cache Policy section, do one or more of the following:
    • To set a different cache profile for publishing sites, select the Publishing sites can use a different page output cache profile check box.
    • To set a different cache profile for page layouts, select the Page layouts can use a different page output cache profile check box.
  2. To display additional cache information on pages in the site collection, in the Debug Cache Information section, select the Enable debug cache information on pages check box.

This includes the date and time that the page was last rendered.

  1. Click OK.

Top of Page Top of Page

Configure page output cache settings at the site level

Use the following steps to configure the page output cache settings for a publishing site.

  1. Click Site Action menu, point to Site Settings, and then click Modify All Site Settings.
  2. Under Site Administration, click Site output cache.
  3. Under Anonymous Cache Profile, do one of the following:
    • To inherit the site-wide anonymous profile that you configured on the Site Collection Output Cache Settings page, select Inherit the profile Anonymous Cache Profile .
    • To select a different anonymous cache profile for a page, click Select a page output cache profile.
  4. Under Authenticated Cache Profile, do one of the following:
    • To inherit the site-wide authenticated profile that was configured on the Site Collection Output Cache Settings page, select Inherit the profile Authenticated Cache Profile.
    • To select a different authenticated cache profile for a page, select Select a page output cache profile.

To apply the settings to subsites in the site collection, select the Apply these settings to all sub-sites check box.

  1. Click OK.

Top of Page Top of Page

Configure page output cache settings for page layouts

Use the following steps to configure the authenticated and anonymous cache profiles that will be used in each page layout.

  1. On the Site Actions menuSite Action menu , point to Site Settings, and then click Modify All Site Settings.
  2. Under Galleries, click Master pages and page layouts.
  3. On the Master Page Gallery page, point to the name of the page layout to which you want to apply a cache profile, click the arrow that appears, and then click Check Out.
  4. Point to the page layout again, click the arrow that appears, and then click Edit Properties.
  5. Do one or both of the following:
    • In the Authenticated Cache Profile box, select the authenticated cache profile that you want to apply to the page layout.
    • In the Anonymous Cache Profile box, select the anonymous cache profile that you want to apply to the page layout.
  6. Click OK.
  1. Point to the name of the page layout that you want to check in, click the arrow that appears, and then click Check In.

Top of Page Top of Page

 
 
Applies to:
SharePoint Server 2007