diff options
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page_collections.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_collections.go b/hugolib/page_collections.go index d99857aec..2b2cfed0f 100644 --- a/hugolib/page_collections.go +++ b/hugolib/page_collections.go @@ -322,7 +322,7 @@ func (c *PageCollections) clearResourceCacheForPage(page *Page) { first := page.Resources[0] dir := path.Dir(first.RelPermalink()) dir = strings.TrimPrefix(dir, page.LanguagePrefix()) - // This is done to keep the memory usage in check when doing live reloads. + dir = strings.TrimPrefix(dir, page.s.BaseURL.Path()) page.s.ResourceSpec.DeleteCacheByPrefix(dir) } } |