]> git.maquefel.me Git - brevno-suite/hugo/commit
Revise the use of htime.Since/htime.Now
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 9 May 2022 08:05:19 +0000 (10:05 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 9 May 2022 12:18:40 +0000 (14:18 +0200)
commit51f08b0b6aae175299b4e73d521343a4386a9cf7
tree6966bc277671a1f62e9363a2a16fa7a2d6ccacd1
parent860c51c314e1f2b06b1424a3b277a2db96fc1f04
Revise the use of htime.Since/htime.Now

We cannot (also, it doesn't add any value)  use that when the `clock` is set,

* To measure time (before that global is set)
* To compare file timestamps re cache eviction

Fixes #9868
cache/filecache/filecache.go
commands/commands.go
commands/hugo.go
commands/server.go
common/loggers/loggers.go
metrics/metrics.go
modules/collect.go
tpl/partials/partials.go
tpl/tplimpl/template.go