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.
In this article
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.
Configure page output cache settings for a site collection
-
Click , point to Site Settings, and then click Modify All Site Settings.
-
In the Site Collection Administration section, click Site collection output cache.
-
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.
-
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.
-
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.
-
-
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.
-
Click OK.
Configure page output cache settings at the site level
Use the following steps to configure the page output cache settings for a publishing site.
-
Click , point to Site Settings, and then click Modify All Site Settings.
-
Under Site Administration, click Site output cache.
-
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.
-
-
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.
-
-
Click OK.
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.
-
On the Site Actions menu , point to Site Settings, and then click Modify All Site Settings.
-
Under Galleries, click Master pages and page layouts.
-
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.
-
Point to the page layout again, click the arrow that appears, and then click Edit Properties.
-
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.
-
-
Click OK.
-
Point to the name of the page layout that you want to check in, click the arrow that appears, and then click Check In.
No comments:
Post a Comment