aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-02 11:20:08 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-04 16:55:06 +0100
commit609d798e342c873143cf7ad05e987f3d8f7fbb45 (patch)
treea47532d5ba4acf3f12aad25791ee24ff802af35e /commands
parent53f204310ec8362d7084c123e8e16f5bb73dd257 (diff)
downloadhugo-609d798e342c873143cf7ad05e987f3d8f7fbb45.tar.gz
hugo-609d798e342c873143cf7ad05e987f3d8f7fbb45.zip
Handle resource changes when the resources is already evicted from cache
Also fix a logical flaw in the cache resizer that made it too aggressive. After this I haven't been able to reproduce #11988, but I need to look closer. Closes #11973 Updates #11988
Diffstat (limited to 'commands')
-rw-r--r--commands/hugobuilder.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go
index ddc92129c..190c12f59 100644
--- a/commands/hugobuilder.go
+++ b/commands/hugobuilder.go
@@ -949,9 +949,10 @@ func (c *hugoBuilder) loadConfig(cd *simplecobra.Commandeer, running bool) error
cfg.Set("environment", c.r.environment)
cfg.Set("internal", maps.Params{
- "running": running,
- "watch": watch,
- "verbose": c.r.isVerbose(),
+ "running": running,
+ "watch": watch,
+ "verbose": c.r.isVerbose(),
+ "fastRenderMode": c.fastRenderMode,
})
conf, err := c.r.ConfigFromProvider(c.r.configVersionID.Load(), flagsToCfg(cd, cfg))