mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Consolidate all hashing to the common/hashing package
And remove now unsued hashing funcs.
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
||||
|
||||
"github.com/bep/lazycache"
|
||||
|
||||
"github.com/gohugoio/hugo/common/hashing"
|
||||
"github.com/gohugoio/hugo/identity"
|
||||
|
||||
texttemplate "github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate"
|
||||
@@ -50,7 +51,7 @@ func (k partialCacheKey) Key() string {
|
||||
if k.Variants == nil {
|
||||
return k.Name
|
||||
}
|
||||
return identity.HashString(append([]any{k.Name}, k.Variants...)...)
|
||||
return hashing.HashString(append([]any{k.Name}, k.Variants...)...)
|
||||
}
|
||||
|
||||
func (k partialCacheKey) templateName() string {
|
||||
|
Reference in New Issue
Block a user