aboutsummaryrefslogtreecommitdiffhomepage
path: root/deps/deps.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-04-25 12:30:16 +0200
committerBjørn Erik Pedersen <[email protected]>2024-04-25 14:35:49 +0200
commit7203a95a6069b09a7546e5b2e286abe6455df83a (patch)
treeb61d582829a705f6eb47ba84ff697b656c5a79f6 /deps/deps.go
parentfb084390cd8f2f62220489b8f1692863f57b25b6 (diff)
downloadhugo-7203a95a6069b09a7546e5b2e286abe6455df83a.tar.gz
hugo-7203a95a6069b09a7546e5b2e286abe6455df83a.zip
Fix rebuilds when running hugo -w
This was partly broken in Hugo 0.123.0. We have two internal config options that gets set from the CLI: * Running; a web server is running * Watching; either set via `hugo -w` or `hugo server --watch=false` Part of the change detection code wrongly used the `Running` as a flag when `Watching` would be the correct. Fixes #12296
Diffstat (limited to 'deps/deps.go')
-rw-r--r--deps/deps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/deps.go b/deps/deps.go
index 78a5330b7..41a8ecb3e 100644
--- a/deps/deps.go
+++ b/deps/deps.go
@@ -155,7 +155,7 @@ func (d *Deps) Init() error {
}
if d.MemCache == nil {
- d.MemCache = dynacache.New(dynacache.Options{Running: d.Conf.Running(), Log: d.Log})
+ d.MemCache = dynacache.New(dynacache.Options{Watching: d.Conf.Watching(), Log: d.Log})
}
if d.PathSpec == nil {