summaryrefslogtreecommitdiffstats
path: root/navigation/menu_cache.go
AgeCommit message (Collapse)Author
2023-01-04Misc doc, code refactoring to improve documentationBjørn Erik Pedersen
2021-05-23navigation: Cache and copy Menu for sortingsatotake
.Site.Menus is mutated when it is sorted for now and this causes concurrency problem (#7594) In this patch, each related sort function copies Menu before sorting to prevent race condition. Pages already have such a sort and cache logic and this patch is identical to it. Closes #7594