diff options
author | tdro <tdro@noreply.example.com> | 2022-05-28 17:53:31 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-28 17:53:31 -0400 |
commit | 0286144b14ef7ce2a943999fc616c3c24be83c57 (patch) | |
tree | b4bab8c5d46f8a02c756b0fd202b4c084f2bda0d /config.toml | |
parent | 854481ff9080a8af8ac3adfdbb00da10e5656689 (diff) | |
download | canory-0286144b14ef7ce2a943999fc616c3c24be83c57.tar.gz canory-0286144b14ef7ce2a943999fc616c3c24be83c57.tar.bz2 canory-0286144b14ef7ce2a943999fc616c3c24be83c57.zip |
config: Set caches
Diffstat (limited to 'config.toml')
-rw-r--r-- | config.toml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config.toml b/config.toml index 2375ee2..fdfeccc 100644 --- a/config.toml +++ b/config.toml @@ -174,6 +174,32 @@ enableRobotsTXT = true term = ["html", "rss"] page = ["html"] +[caches] + + [caches.assets] + dir = ":resourceDir/_gen" + maxAge = -1 + + [caches.images] + dir = ":resourceDir/_gen" + maxAge = -1 + + [caches.getcsv] + dir = ":resourceDir/caches" + maxAge = "12h" + + [caches.getjson] + dir = ":resourceDir/caches" + maxAge = "12h" + + [caches.getresource] + dir = ":resourceDir/caches" + maxAge = "12h" + + [caches.modules] + dir = ":resourceDir/caches" + maxAge = -1 + [module] [[module.mounts]] |