cache: Hide IsResourceDir from the exported config

This commit is contained in:
Bjørn Erik Pedersen 2023-08-09 23:47:39 +02:00
parent 7d74cd0cc8
commit a2f6400d65
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
2 changed files with 1 additions and 7 deletions

View file

@ -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.

View file

@ -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: []