Set-SPOStructuralNavigationCacheWebState
Enable or disable caching for a web in a site collection.
Syntax
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
$true to enable caching, $false to disable caching.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WebUrl
Specifies the absolute URL for the web that needs its caching state to be set.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
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"