mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-07 03:07:25 +03:00
parent
e08d9af21e
commit
2a663b1938
1 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,7 @@ import (
|
||||||
|
|
||||||
"github.com/bep/logg"
|
"github.com/bep/logg"
|
||||||
"github.com/gohugoio/hugo/bufferpool"
|
"github.com/gohugoio/hugo/bufferpool"
|
||||||
|
"github.com/gohugoio/hugo/cache/dynacache"
|
||||||
"github.com/gohugoio/hugo/deps"
|
"github.com/gohugoio/hugo/deps"
|
||||||
"github.com/gohugoio/hugo/hugofs"
|
"github.com/gohugoio/hugo/hugofs"
|
||||||
"github.com/gohugoio/hugo/hugofs/files"
|
"github.com/gohugoio/hugo/hugofs/files"
|
||||||
|
@ -1062,6 +1063,18 @@ func (h *HugoSites) processPartialFileEvents(ctx context.Context, l logg.LevelLo
|
||||||
|
|
||||||
resourceFiles := h.fileEventsContentPaths(addedOrChangedContent)
|
resourceFiles := h.fileEventsContentPaths(addedOrChangedContent)
|
||||||
|
|
||||||
|
defer func() {
|
||||||
|
// See issue 13316.
|
||||||
|
h.MemCache.DrainEvictedIdentitiesMatching(func(ki dynacache.KeyIdentity) bool {
|
||||||
|
for _, c := range changes {
|
||||||
|
if c.IdentifierBase() == ki.Identity.IdentifierBase() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
})
|
||||||
|
}()
|
||||||
|
|
||||||
changed := &WhatChanged{
|
changed := &WhatChanged{
|
||||||
needsPagesAssembly: needsPagesAssemble,
|
needsPagesAssembly: needsPagesAssemble,
|
||||||
identitySet: make(identity.Identities),
|
identitySet: make(identity.Identities),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue