Table of contents
TOC
Collapse the table of content
Expand the table of content

WebExtensions.SetPageOutputCache Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Sets output cache on publishing web. The settings can be maintained from UI by visiting url /_layouts/15/sitecachesettings.aspx

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void SetPageOutputCache(this Web web, Boolean enableOutputCache, Int32 anonymousCacheProfileId, Int32 authenticatedCacheProfileId, Boolean debugCacheInformation)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  SharePoint web

enableOutputCache

  Type: System.Boolean
  Specify true to enable output cache. False otherwise.

anonymousCacheProfileId

  Type: System.Int32
  Applies for anonymous users access for a site in Site Collection. Id of the profile specified in "Cache Profiles" list.

authenticatedCacheProfileId

  Type: System.Int32
  Applies for authenticated users access for a site in the Site Collection. Id of the profile specified in "Cache Profiles" list.

debugCacheInformation

  Type: System.Boolean
  Specify true to enable the display of additional cache information on pages in this site collection. False otherwise.

Return Value

Type: void

See also

© 2018 Microsoft