diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-10-17 09:28:04 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-10-17 10:15:22 +0200 |
commit | 4a366fcfee24b3a5a5045b16c3b87b76147adf5e (patch) | |
tree | 7a8562579346a5dedb31137c896b6f5311ec061c /hugolib/site_render.go | |
parent | 083311d0336ced35909b3375950f7817ecf95ed0 (diff) | |
download | hugo-4a366fcfee24b3a5a5045b16c3b87b76147adf5e.tar.gz hugo-4a366fcfee24b3a5a5045b16c3b87b76147adf5e.zip |
Prevent stale content in Fast Render Mode
We do that by re-render visited pages that is not already in the stack. This may potentially do some double work, but that small penalty should be well worth it.
Fixes #5281
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r-- | hugolib/site_render.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go index 13fbb43cd..6583acd06 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -43,7 +43,7 @@ func (s *Site) renderPages(cfg *BuildCfg) error { go pageRenderer(s, pages, results, wg) } - if len(s.headlessPages) > 0 { + if !cfg.PartialReRender && len(s.headlessPages) > 0 { wg.Add(1) go headlessPagesPublisher(s, wg) } |