Make resources.Get
use a file cache for remote resources.
#9228
Labels
Milestone
resources.Get
use a file cache for remote resources.
#9228
As I mentioned briefly, I'm in the process of improving some core things in Hugo (including some cache work), but I think we should get the recent remote support in
resources.Get
+ XML support out in its own Hugo release.To do that, I think we should make the remote
resources.Get
cache to disk and not to memory (as it is now).See:
https://github.com/gohugoio/hugo/blob/master/tpl/data/resources.go#L47
I suggest that we set up a new named file cache, name it
getresource
, and update the docs about it here:https://gohugo.io/getting-started/configuration/#configure-file-caches
Perhaps make a note about its usage in
resources.Get
but only for remote resources.@vanbroup something you would want to take on and implement?
The text was updated successfully, but these errors were encountered: