Set-PnPStructuralNavigationCacheWebState
SYNOPSIS
Enable or disable caching for all webs in a site collection.
SYNTAX
Set-PnPStructuralNavigationCacheWebState -IsEnabled <Boolean> [-WebUrl <String>]
DESCRIPTION
The Set-PnPStructuralNavigationCacheWebState cmdlet can be used to enable or disable caching for a webs in a site collection. If the WebUrl parameter has not been specified the currently connected to site will be used.
EXAMPLES
Example 1
Set-PnPStructuralNavigationCacheWebState -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-PnPStructuralNavigationCacheWebState -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
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WebUrl
Specifies the absolute URL for the web that needs its caching state set.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False