mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
cache: Hide IsResourceDir from the exported config
This commit is contained in:
parent
7d74cd0cc8
commit
a2f6400d65
2 changed files with 1 additions and 7 deletions
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: []
|
||||
|
|
Loading…
Reference in a new issue