Share via


Set-SPOStructuralNavigationCacheSiteState

Enable or disable caching for all webs in a site collection.

Syntax

Default (Default)

Set-SPOStructuralNavigationCacheSiteState
    -SiteUrl <String>
    -IsEnabled <Boolean>
    [<CommonParameters>]

Description

The Set-SPOStructuralNavigationCacheSiteState cmdlet can be used to enable or disable caching for all webs in a site collection. Learn more.

Examples

Example 1

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl "https://contoso.sharepoint.com/sites/product/"

This example enables caching for all webs in the site collection https://contoso.sharepoint.com/sites/product/.

Example 2

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl "https://contoso.sharepoint.com/sites/product/"

This example disables caching for all webs in the site collection https://contoso.sharepoint.com/sites/product/.

Parameters

-IsEnabled

Applicable: SharePoint Online $true to enable caching, $false to disable caching.

Parameter properties

Type:System.Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SiteUrl

Applicable: SharePoint Online Specifies the absolute URL for the site collection's root web that needs its caching state to be set.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object

Notes

To see the examples, type: "get-help Set-SPOStructuralNavigationCacheSiteState -examples".

For more information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -detailed".

For technical information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -full".

For online help, type: "get-help Set-SPOStructuralNavigationCacheSiteState -online"