mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Fix some change detection issues on server reloads
* Fix change detection when .GetPage/site.GetPage is used from shortcode * Fix stale content for GetPage results with short name lookups on server reloads Fixes #7623 Fixes #7624 Fixes #7625
This commit is contained in:
@@ -129,6 +129,8 @@ func (im *identityManager) Reset() {
|
||||
im.Unlock()
|
||||
}
|
||||
|
||||
// TODO(bep) these identities are currently only read on server reloads
|
||||
// so there should be no concurrency issues, but that may change.
|
||||
func (im *identityManager) GetIdentities() Identities {
|
||||
im.Lock()
|
||||
defer im.Unlock()
|
||||
|
Reference in New Issue
Block a user