Skip to content

Commit

Permalink
cache: Hide IsResourceDir from the exported config
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 9, 2023
1 parent 7d74cd0 commit a2f6400
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion cache/filecache/filecache_config.go
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions docs/data/docs.yaml
Expand Up @@ -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: []
Expand Down

0 comments on commit a2f6400

Please sign in to comment.