mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
785a31b5b8
.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 |
||
---|---|---|
.. | ||
menu.go | ||
menu_cache.go | ||
menu_cache_test.go | ||
pagemenus.go |