Manage cache profiles

Cache profiles describe specific cache settings for each type of page output cache. A cache profile defines the following types of cache behavior:

  • The length of time that items should be held within the cache
  • The security trimming policy
  • The expiration of settings, such as duration and changes
  • The partition of a cache based on user permission, user rights, and other custom variables

Because a cache profile can be centrally defined for a site collection, you can update a profile in one place and the change is immediately implemented across the site collection.

 Note   Cache profiles determine the behavior of the page output cache for a site collection, an individual site, or a master page to which the cache profiles are applied.

Add cache profiles

  1. On the Home page of the site collection, on the Site Actions menuSite Action menu , point to Site Settings, and then click Modify All Site Settings.
  2. Under Site Collection Administration, click Site collection cache profiles.
  3. On the Cache Profiles page, click New.
  4. In the Title section, type a title for the cache profile.
  5. In the Display Name section, type a name for the cache profile.

The display name appears in the list of available cache profiles for site owners and page layout owners.

  1. In the Display Description section, type a description for the purpose of the cache profile.
  2. In the Perform ACL Check section, select the check box to ensure that all items in the cache are security trimmed.

Although you can clear the check box to provide additional speed, you should only do this for sites or page layouts that do not have information that needs to be security trimmed.

  1. In the Enabled section, select the check box to enable caching.
  2. In the Duration section, type the number of seconds that the cached version will be available.
  3. In the Check for Changes section, select the check box to validate on each page request that the site has not changed and will flush the cache on changes to the site.

Although you can clear the check box to enhance performance, when you do this, the system does not check for updates to the site for the number of seconds specified in the Duration section. This can result in users not getting the most current information.

  1. In the Vary by Custom Parameter section, type the custom parameter as specified by
HttpCachePolicy.SetVaryByCustom

in ASP .NET 2.0.

  1. In the Vary by HTTP Header section, type the custom parameter as specified by
HttpCachePolicy.VaryByHeaders

in ASP .NET 2.0.

  1. In the Vary by Query String Parameters section, type the query parameter as specified by
HttpCachePolicy.VaryByParams

in ASP .NET 2.0 .

  1. In the Vary by User Rights section, select the check box to ensure that users must have identical effective permissions on all securable objects to see the same cached page as any other user.
  2. In the Cacheability section, select the cache type as specified by
HttpCacheability

in ASP .NET 2.0 .

  1. In the Safe for Authenticated Use section, select the check box for the policies that you want to allow administrators and page layout designers to apply to authenticated scenarios.
  2. In the Allow writers to view cached content section, select the check box to bypass the normal behavior in which people with edit permissions have their pages cached.

Enable this behavior in scenarios in which you know that the page will be published, but will not have content that might be checked out or exist in draft form, such as a Content Query Web Part.

  1. Click OK.
 
 
Applies to:
SharePoint Server 2007