mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 06:12:02 -05:00
2dbdf38a54
If set, `key` will be used as the only cache key element for the resource. The default behaviour is to calculate the key based on the URL and all the options. This means that you can now do: ``` {{ $cacheKey := print $url (now.Format "2006-01-02") }} {{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }} ``` Fixes #9755 |
||
---|---|---|
.. | ||
maps.go | ||
maps_test.go | ||
params.go | ||
params_test.go | ||
scratch.go | ||
scratch_test.go |