Set-SPOStructuralNavigationCacheSiteState
啟用或停用網站集合中所有 Web 的快取功能。
Syntax
Set-SPOStructuralNavigationCacheSiteState
-SiteUrl <String>
-IsEnabled <Boolean>
[<CommonParameters>]
Description
SPOStructuralNavigationCacheSiteState Cmdlet 可用於啟用或停用網站集合中所有 Web 的快取功能。 深入了解。
範例
範例 1
PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl "https://contoso.sharepoint.com/sites/product/"
本範例啟用網站集合中所有 Web 的快取功能。https://contoso.sharepoint.com/sites/product/
範例 2
PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl "https://contoso.sharepoint.com/sites/product/"
此範例停用網站集合中所有 Web 的快取功能。https://contoso.sharepoint.com/sites/product/
參數
-IsEnabled
$true 啟用快取功能,$false 停用快取功能。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SiteUrl
指定需設定其快取狀態的網站集合根網站的絕對 URL。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
輸入
None
輸出
System.Object
備註
若要查看範例,請輸入:「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"