Trying to understand why this is happening in terms of performance with my Head file. I understand the impact on my single pages but not why the head which is just a text link would be so impacted.
would produce such drastic head duration differences. I recognize the Single.html will now be rendering styled content which makes sense but for just a change in href I could not for the life of me figure out why that would have such a drastic impact.
When you invoke the .RelPermalink, .Permalink, or .Publish method on a resource, it is written to disk. Have you tried using partialCached instead of partial?
Ahh, so it is writing the tailwind css to disk every time the .RelPermalink is called which makes sense. Is there a way to do this once for the whole site then while still maintaining the rest of the head caching per language?
Note: Each Site (or language) has its own partialCached cache, so each site will execute a partial once.
So I’m not sure if that will actually improve anything since each language head file is already cached only once per site. Unless there is a way to cache at a higher level than that, I may have to move the css outside the Hugo project to squeak out that performance it seems. However in thinking about it I am going to go test if I can set a boolean flag somehow and then detect if the css has been created for the default language and reference that on each head.
As always @jmooring, thank you for your stellar knowledge of the system. I have learned so much from you in the past few months.