No cached partials with 'server' command or 'watch' flag

It would be really convenient if the partialCached template function would temporarily be the regular partial function, when the ‘server’ command or the ‘watch’ flag is used.

As web-developer that would be really great because currently, for example, when your changing the header/footer markup inside a cached partial, you won’t see the changes in the browser.

If the partialcCache cache does not flush between reloads, it is a bug and should be fixed. Could you create a GitHub isue?

Something like this?

https://github.com/spf13/hugo/issues/3016

1 Like