Set-SPOStructuralNavigationCacheWebState
Enable or disable caching for a web in a site collection.
Syntax
Default (Default)
Set-SPOStructuralNavigationCacheWebState
-WebUrl <String>
-IsEnabled <Boolean>
[<CommonParameters>]
Description
The Set-SPOStructuralNavigationCacheWebState cmdlet can be used to enable or disable caching for a web in a site collection. Learn more.
Examples
Example 1
PS C:\> Set-SPOStructuralNavigationCacheWebState -IsEnabled $true -WebUrl "https://contoso.sharepoint.com/sites/product/electronics"
This example enables caching for the web https://contoso.sharepoint.com/sites/product/electronics.
Example 2
Set-SPOStructuralNavigationCacheWebState -IsEnabled $false -WebUrl "https://contoso.sharepoint.com/sites/product/electronics"
This example disables caching for the web https://contoso.sharepoint.com/sites/product/electronics.
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 |
-WebUrl
Applicable: SharePoint Online Specifies the absolute URL for the 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-SPOStructuralNavigationCacheWebState -examples".
For more information, type: "get-help Set-SPOStructuralNavigationCacheWebState -detailed".
For technical information, type: "get-help Set-SPOStructuralNavigationCacheWebState -full".
For online help, type: "get-help Set-SPOStructuralNavigationCacheWebState -online"