mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Fix one more resource change eviction logic issue
This is how we should have fixed #1239. Fixes #12456
This commit is contained in:
@@ -49,6 +49,7 @@ var (
|
||||
_ resource.ReadSeekCloserResource = (*resourceAdapter)(nil)
|
||||
_ resource.Resource = (*resourceAdapter)(nil)
|
||||
_ resource.Staler = (*resourceAdapterInner)(nil)
|
||||
_ identity.IdentityGroupProvider = (*resourceAdapterInner)(nil)
|
||||
_ resource.Source = (*resourceAdapter)(nil)
|
||||
_ resource.Identifier = (*resourceAdapter)(nil)
|
||||
_ resource.ResourceNameTitleProvider = (*resourceAdapter)(nil)
|
||||
@@ -657,6 +658,10 @@ type resourceAdapterInner struct {
|
||||
*publishOnce
|
||||
}
|
||||
|
||||
func (r *resourceAdapterInner) GetIdentityGroup() identity.Identity {
|
||||
return r.target.GetIdentityGroup()
|
||||
}
|
||||
|
||||
func (r *resourceAdapterInner) StaleVersion() uint32 {
|
||||
// Both of these are incremented on change.
|
||||
return r.Staler.StaleVersion() + r.target.StaleVersion()
|
||||
|
Reference in New Issue
Block a user