mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
2247546017
commit
9d973004f5
1 changed files with 1 additions and 5 deletions
|
@ -319,10 +319,6 @@ func (c *PageCollections) replacePage(page *Page) {
|
|||
|
||||
func (c *PageCollections) clearResourceCacheForPage(page *Page) {
|
||||
if len(page.Resources) > 0 {
|
||||
first := page.Resources[0]
|
||||
dir := path.Dir(first.RelPermalink())
|
||||
dir = strings.TrimPrefix(dir, page.LanguagePrefix())
|
||||
dir = strings.TrimPrefix(dir, page.s.BaseURL.Path())
|
||||
page.s.ResourceSpec.DeleteCacheByPrefix(dir)
|
||||
page.s.ResourceSpec.DeleteCacheByPrefix(page.relTargetPathBase)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue