mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
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
This commit is contained in:
@@ -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()]
|
||||
}
|
||||
|
Reference in New Issue
Block a user