Skip to content

Latest commit

 

History

History
102 lines (74 loc) · 2.99 KB

File metadata and controls

102 lines (74 loc) · 2.99 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-SPOStructuralNavigationCacheSiteState
author paramveersisodia
ms.author paramsis
manager suyog
ms.reviewer

Set-SPOStructuralNavigationCacheSiteState

SYNOPSIS

Enable or disable caching for all webs in a site collection.

SYNTAX

Set-SPOStructuralNavigationCacheSiteState -SiteUrl <String> -IsEnabled <Boolean> [<CommonParameters>]

DESCRIPTION

The Set-SPOStructuralNavigationCacheSiteState cmdlet can be used to enable or disable caching for all webs in a site collection. Learn more.

EXAMPLES

Example 1

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl "https://contoso.sharepoint.com/sites/product/" 

This example enables caching for all webs in the site collection https://contoso.sharepoint.com/sites/product/.

Example 2

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl "https://contoso.sharepoint.com/sites/product/"  

This example disables caching for all webs in the site collection https://contoso.sharepoint.com/sites/product/.

PARAMETERS

-IsEnabled

$true to enable caching, $false to disable caching.

Type: Boolean
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SiteUrl

Specifies the absolute URL for the site collection's root web that needs its caching state to be set.

Type: String
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
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-SPOStructuralNavigationCacheSiteState -examples". 

For more information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -detailed". 

For technical information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -full". 

For online help, type: "get-help Set-SPOStructuralNavigationCacheSiteState -online" 

RELATED LINKS

Get-SPOStructuralNavigationCacheWebState

Set-SPOStructuralNavigationCacheWebState

Get-SPOStructuralNavigationCacheSiteState