mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 02:51:03 -04:00
Wrap cache configuration in code-toggle
This commit is contained in:
parent
914405c0ef
commit
5957d8815d
@ -514,7 +514,7 @@ Default configuration:
|
|||||||
|
|
||||||
Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
|
Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
|
||||||
|
|
||||||
```toml
|
{{< code-toggle >}}
|
||||||
[caches]
|
[caches]
|
||||||
[caches.getjson]
|
[caches.getjson]
|
||||||
dir = ":cacheDir/:project"
|
dir = ":cacheDir/:project"
|
||||||
@ -531,7 +531,7 @@ maxAge = -1
|
|||||||
[caches.modules]
|
[caches.modules]
|
||||||
dir = ":cacheDir/modules"
|
dir = ":cacheDir/modules"
|
||||||
maxAge = -1
|
maxAge = -1
|
||||||
```
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
You can override any of these cache settings in your own `config.toml`.
|
You can override any of these cache settings in your own `config.toml`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user