Forum Discussion
Menu not updating
Go to your site and select Settings, then select Site information. At the bottom, select View all site settings
Under the Look and Feel heading, select Navigation.
Scroll to the Structural Navigation: Refresh Cache section and click Refresh.
- mattchowellJul 29, 2022Iron Contributor
YEARS later and this is STILL an issue. As admin I could see the changes but not other users. Refreshing the cache as suggested above did nothing. Suggesting all 10000 users clear their cookies is not practical and shouldn't be necessary.
I inspected the page in an incognito window using a read only test id, and don't see the js errors mentioned above. But when I closed that window and opened a new one, the changes showed up for the test user. But still not for others.
How on earth does Msft allow these bugs to persist without doing anything? Oh, forgot - they don't care.
- frequentsharepointuserOct 26, 2023Copper ContributorUpvoting this over a year later! STILL having the SAME ISSUES. Come on Microsoft, PLEASE!
- NotSoBlandOct 26, 2023Copper Contributor
frequentsharepointuser Yes, essentially Structural Navigation: Refresh Cache doesn't work, especially if end user doesn't clear entire browsing history, cookies, AND cached images and files. Instead of updating the existing nav link with current url, and having my end user clear their entire history and cache, I rather just recreate a new nav menu item with the new link (and then delete the previous nav link)... then I still do the Structural Navigation: Refresh Cache from SharePoint backend and wait for a crawl.
- iXeeshanTahirSep 04, 2023Copper ContributorSo, after weeks of trying different approaches, I was finally able to achieve this with some custom piece of code.
The problem here is that SharePoint Online stores the Hub navigation in browser cache. A database called ODSP_DB is holding the navigation nodes. Users cannot see the navigation updates unless they clear browser cache (which eventually refreshes the database) or logout and login to the system.
To overcome this issue, you have to clean the DB with custom JS Code and unregister a service worker from the browser, which actually forces the browser to rebuild the ODSP_DB and the navigation nodes.
I have placed the sample code on my blog. May be it will help someone until a proper way is announced by Microsoft.
http://fixingsharepoint.blogspot.com/2022/11/sharepoint-online-hub-navigation-not.html- LucidBike1140Sep 05, 2023Iron ContributorThanks - very interesting! I am still surprised that the browser's cache cannot detect that the menu has been updated on the server side and then update itself accordingly. I thought that was how browser caches were supposed to work. Unfortunately deploying an SPFX solution and asking our users to click on something to keep their menu updated is not a practical solution for us.