Is it possible to build Hugo with Caching Files?
https://gohugo.io/getting-started/configuration/#configure-file-cachesLet's assume I have a million static page build by Hugo and I don't want to wait for 5 minutes every tiny update (doesn't make sense right?), can I do caching files for build in Cloudflare like I did in my local machine? Edit: I found this but it doesn't seem to support Hugo: https://developers.cloudflare.com/pages/configuration/build-caching/#frameworks
4 Replies
A million pages wouldn't be possible with CF Pages either, cause they have a hard limit of 20k pages/files (see https://developers.cloudflare.com/pages/platform/limits/#file-size). Besides that, build cache would be awesome for many other reasons, such as image processing.
@Dario you responded to that topic in the past. Is there any chance Hugo build caches will be supported?
Hi π
to be honest the chances to get hugo build caching support are a bit slim for the foreseeable, the main problem I faced before was that hugo is not a js tool and the pages build caching system was implemented just for js tools, so a new non-js implementation would be needed to be built almost from the gound up for that
I don't think it would be a huge huge effort to be honest, but also not something trivial, and I don't really have any capacity for that (nor plan to unfortunately), I can check with the relative team if this is something they'd be interested in
but also, just for workers static assets and not pages as there is not really a huge drive to add new features to pages at this point
Hey @Dario , sad to see that supporting Hugo build caching is not a priority at CF. But I appreciate your honest words. Take care! Joachim
Thanks @Jo π , I really appreciate your understanding π