summaryrefslogtreecommitdiffstats
path: root/tpl/partials/partials.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/partials/partials.go')
-rw-r--r--tpl/partials/partials.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go
index 9ded32a71..eb4ebfe32 100644
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -25,8 +25,8 @@ import (
"reflect"
"strings"
"sync"
+ "time"
- "github.com/gohugoio/hugo/common/htime"
texttemplate "github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate"
"github.com/gohugoio/hugo/helpers"
@@ -222,7 +222,7 @@ func createKey(name string, variants ...any) (partialCacheKey, error) {
var errUnHashable = errors.New("unhashable")
func (ns *Namespace) getOrCreate(ctx context.Context, key partialCacheKey, context any) (result any, err error) {
- start := htime.Now()
+ start := time.Now()
defer func() {
if r := recover(); r != nil {
err = r.(error)