mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
cache: Hide IsResourceDir from the exported config
This commit is contained in:
2
cache/filecache/filecache_config.go
vendored
2
cache/filecache/filecache_config.go
vendored
@@ -93,7 +93,7 @@ type FileCacheConfig struct {
|
||||
|
||||
// Will resources/_gen will get its own composite filesystem that
|
||||
// also checks any theme.
|
||||
IsResourceDir bool
|
||||
IsResourceDir bool `json:"-"`
|
||||
}
|
||||
|
||||
// GetJSONCache gets the file cache for getJSON.
|
||||
|
@@ -910,27 +910,21 @@ config:
|
||||
caches:
|
||||
assets:
|
||||
dir: :resourceDir/_gen
|
||||
isResourceDir: true
|
||||
maxAge: -1
|
||||
getcsv:
|
||||
dir: :cacheDir/:project
|
||||
isResourceDir: false
|
||||
maxAge: -1
|
||||
getjson:
|
||||
dir: :cacheDir/:project
|
||||
isResourceDir: false
|
||||
maxAge: -1
|
||||
getresource:
|
||||
dir: :cacheDir/:project
|
||||
isResourceDir: false
|
||||
maxAge: -1
|
||||
images:
|
||||
dir: :cacheDir/images
|
||||
isResourceDir: false
|
||||
maxAge: 1.8e+15
|
||||
modules:
|
||||
dir: :cacheDir/modules
|
||||
isResourceDir: false
|
||||
maxAge: -1
|
||||
canonifyURLs: false
|
||||
cascade: []
|
||||
|
Reference in New Issue
Block a user