Search Results for

    Show / Hide Table of Contents
    Available in the current Nightly Release only.

    Set-PnPStructuralNavigationCacheWebState

    SYNOPSIS

    Enable or disable caching for a web.

    SYNTAX

    Set-PnPStructuralNavigationCacheWebState -IsEnabled <Boolean> [-WebUrl <String>] [-Connection <PnPConnection>] 
    

    DESCRIPTION

    The Set-PnPStructuralNavigationCacheWebState cmdlet can be used to enable or disable caching for a web. If the WebUrl parameter has not been specified the currently connected to web 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

    -Connection

    Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

    Type: PnPConnection
    Parameter Sets: (All)
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -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
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer