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
- On the Home page of the site collection, on the Site Actions menu , point to Site Settings, and then click Modify All Site Settings.
- Under Site Collection Administration, click Site collection cache profiles.
- On the Cache Profiles page, click New.
- In the Title section, type a title for the cache profile.
- 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.
- In the Display Description section, type a description for the purpose of the cache profile.
- 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.
- In the Enabled section, select the check box to enable caching.
- In the Duration section, type the number of seconds that the cached version will be available.
- 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.
- In the Vary by Custom Parameter section, type the custom parameter as specified by
in ASP .NET 2.0.
- In the Vary by HTTP Header section, type the custom parameter as specified by
in ASP .NET 2.0.
- In the Vary by Query String Parameters section, type the query parameter as specified by
in ASP .NET 2.0 .
- 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.
- In the Cacheability section, select the cache type as specified by
in ASP .NET 2.0 .
- 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.
- 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.
- Click OK.