hugolib: Do not reset .Page.Scratch on rebuilds
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 15 Apr 2018 17:31:42 +0000 (19:31 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 15 Apr 2018 17:31:42 +0000 (19:31 +0200)
Fixes #4627

hugolib/site.go

index b0d70bff2141493b3f98dc1dc5a167e02a568afa..262bf2d4dd313bbe0909523becc2d552ead7074c 100644 (file)
@@ -1583,7 +1583,6 @@ func (s *Site) resetBuildState() {
        s.expiredCount = 0
 
        for _, p := range s.rawAllPages {
-               p.scratch = newScratch()
                p.subSections = Pages{}
                p.parent = nil
        }