mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
1 parent
8a0fffd56d
commit
1eb9d34cfd
2 files changed
+13
No files matched your search
@@ -657,6 +657,9 @@ maxAge = -1
|
|||||||
[caches.getcsv]
|
[caches.getcsv]
|
||||||
dir = ":cacheDir/:project"
|
dir = ":cacheDir/:project"
|
||||||
maxAge = -1
|
maxAge = -1
|
||||||
|
[caches.getresource]
|
||||||
|
dir = ":cacheDir/:project"
|
||||||
|
maxAge = -1
|
||||||
[caches.images]
|
[caches.images]
|
||||||
dir = ":resourceDir/_gen"
|
dir = ":resourceDir/_gen"
|
||||||
maxAge = -1
|
maxAge = -1
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ You can also change the request method and set the request body:
|
|||||||
)}}
|
)}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Cache of remote resources
|
||||||
|
|
||||||
|
Each downloaded URL will be cached in the default folder `$TMPDIR/hugo_cache/`. The variable `$TMPDIR` will be resolved to your system-dependent temporary directory.
|
||||||
|
|
||||||
|
With the command-line flag `--cacheDir`, you can specify any folder on your system as a caching directory.
|
||||||
|
|
||||||
|
You can also set `cacheDir` or `caches.getresource` in the [main configuration file][config].
|
||||||
|
|
||||||
|
If you don't like caching at all, you can fully disable caching with the command line flag `--ignoreCache`.
|
||||||
|
|
||||||
### Asset publishing
|
### Asset publishing
|
||||||
|
|
||||||
Assets will only be published (to `/public`) if `.Permalink` or `.RelPermalink` is used.
|
Assets will only be published (to `/public`) if `.Permalink` or `.RelPermalink` is used.
|
||||||
|
|||||||
Reference in new issue
Block a user