summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-04 12:37:55 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-04 13:51:22 +0200
commitd0d661dffd19d5ed6efbd4dd2c572bad008bd859 (patch)
treeb8ef86a426e3b3111c0430374f62991bc2dc35b8 /hugolib/hugo_sites.go
parent4494a01b794ab785c64c8e93c61ccbfa845bc478 (diff)
hugolib: Re-work "fast render" logic in the new flow
Note that this fixes some "live reload" issues recently introduced in non-released code. Closes #5811 See #5784
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r--hugolib/hugo_sites.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index 9fe2a5bdb..caa9a4bc2 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -569,7 +569,6 @@ func (cfg *BuildCfg) shouldRender(p *pageState) bool {
return false
}
if p.forceRender {
- p.forceRender = false
return true
}
@@ -577,6 +576,10 @@ func (cfg *BuildCfg) shouldRender(p *pageState) bool {
return true
}
+ if cfg.RecentlyVisited[p.RelPermalink()] {
+ return true
+ }
+
if cfg.whatChanged != nil && !p.File().IsZero() {
return cfg.whatChanged.files[p.File().Filename()]
}