SharePoint Online - Structural navigation refresh cache missing

Török, Nikoletta EXT 1 Reputation point
2021-05-12T08:01:32.427+00:00

Hi,

In my customer tenant under navigation settings the Structural Navigation: Caching is missing.
How can I activate this feature?
I updated the top navigation items, but the modern experience doesn't show the updated links.
They are any way to refresh cache via PowerShell?
I tried the following command in SharePoint Online Managemen Shell:
Get-SPOStructuralNavigationCacheSiteState
but I get an error: The term 'Get-SPOStructuralNavigationCacheSiteState' is not recognized as
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.

Please help!

Thanks,
Mykie

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,466 Reputation points
    2021-05-13T10:05:44.13+00:00

    Hi @Török, Nikoletta EXT

    Whether this issue occurs in all site collections? Did the navigation cache settings exist before?

    Please check the current navigation settings. You have to select Structural Navigation then you can enable and refresh navigation cache.
    96277-2.png

    You could use following PowerShell as administrator to check whether the navigation caching setting is enabled or not. The commend:”Get-SPOStructuralNavigationCacheSiteState” is only check navigation cache state, but we can’t refresh cache by using PowerShell in the SharePoint online.

    $AdminSiteURL="https://tenant-admin.sharepoint.com/"  
    $SiteURL="site collection URL"  
    $Cred = Get-Credential  
    Connect-SPOService -URL $AdminSiteURL -Credential $Cred  
    Get-SPOStructuralNavigationCacheSiteState -SiteUrl $SiteURL  
    

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.