This topic has not yet been rated - Rate this topic

PublishingPage.GetEffectiveAnonymousPageCacheProfileId Method

Returns the current cache profile identifier (ID) that this page uses if output is cached for an anonymous user.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public int GetEffectiveAnonymousPageCacheProfileId()

Return Value

Type: System.Int32
The current effective output cache profile for an anonymous user.

This is the ID of the list item in the cache profiles list, stored in the root Web site of the site collection. This property is calculated by looking at the anonymous cache profile of the root Web site.

If Web overrides are enabled, the page uses the profile associated with its parent Web site. If page layout overrides are enabled, the page uses the anonymous profile associated with the page layout, if an anonymous profile is defined.

If both a Web and page layout override are present, the page layout is used.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ