diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-02 11:20:08 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-04 16:55:06 +0100 |
commit | 609d798e342c873143cf7ad05e987f3d8f7fbb45 (patch) | |
tree | a47532d5ba4acf3f12aad25791ee24ff802af35e /config | |
parent | 53f204310ec8362d7084c123e8e16f5bb73dd257 (diff) | |
download | hugo-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 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 1 | ||||
-rw-r--r-- | config/allconfig/configlanguage.go | 4 | ||||
-rw-r--r-- | config/configProvider.go | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index 7052f0abd..4771f5a72 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -65,6 +65,7 @@ type InternalConfig struct { Verbose bool Clock string Watch bool + FastRenderMode bool LiveReloadPort int } diff --git a/config/allconfig/configlanguage.go b/config/allconfig/configlanguage.go index 0b4c74278..2cc80caa8 100644 --- a/config/allconfig/configlanguage.go +++ b/config/allconfig/configlanguage.go @@ -73,6 +73,10 @@ func (c ConfigLanguage) IsMultihost() bool { return c.m.IsMultihost } +func (c ConfigLanguage) FastRenderMode() bool { + return c.config.Internal.FastRenderMode +} + func (c ConfigLanguage) IsMultiLingual() bool { return len(c.m.Languages) > 1 } diff --git a/config/configProvider.go b/config/configProvider.go index 21d832f17..38dde3bb4 100644 --- a/config/configProvider.go +++ b/config/configProvider.go @@ -57,6 +57,7 @@ type AllProvider interface { BuildDrafts() bool Running() bool Watching() bool + FastRenderMode() bool PrintUnusedTemplates() bool EnableMissingTranslationPlaceholders() bool TemplateMetrics() bool |