Skip to content

Latest commit

 

History

History
105 lines (74 loc) · 2.93 KB

File metadata and controls

105 lines (74 loc) · 2.93 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version
schema 2.0.0
applicable SharePoint Online
title Set-SPOStructuralNavigationCacheWebState
author paramveersisodia
ms.author paramsis
manager suyog
ms.reviewer

Set-SPOStructuralNavigationCacheWebState

SYNOPSIS

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

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

Type: System.Boolean
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WebUrl

Applicable: SharePoint Online Specifies the absolute URL for the web that needs its caching state to be set.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -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"

RELATED LINKS

Get-SPOStructuralNavigationCacheWebState

Get-SPOStructuralNavigationCacheSiteState

Set-SPOStructuralNavigationCacheSiteState