Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes

Rendering is Cached

There may be many reasons. If you have multiple CD servers and .cshtml file deployed only one server correctly. File location is not correct, you can cross check if file location is correct by ...
Rishiraj Shekhawat's user avatar
3 votes

How to ensure rendering cache invalidates after a direct edit to the .CSHTML file

The easiest way to clean the HTML cache is to trigger publish. Sitecore doesn't have watchers on .cshtml files, so it is expected behavior.
Anton's user avatar
  • 3,831
2 votes
Accepted

Caching HTML for rendering based on "page" item data, not datasource

As long as the output is always the same on each page then you can use Vary By Data, this will cache based on the context item if no data source is set. Note that as per Mark's point this might not ...
Jeroen's user avatar
  • 1,224
2 votes
Accepted

Is there a way to add a cache buster to the RenderFormScripts Html helper function?

You can override IncludeFiles processor of forms.renderForm pipeline and add custom parameter for all the scripts (or styles). Class below adds DateTime.Now.Ticks to scripts only. You can use your own ...
Marek Musielak's user avatar
  • 23.9k
2 votes
Accepted

Html cache on rendering with "vary by data" in Multiligual site

Sitecore internally uses the current language in the cache key so the above approach will work fine for different language versions as well. It treats every sublayout or rendering as a different ...
Mahendra Shekhawat's user avatar
1 vote

HTML rendering cache performance logs

This is a big topic with many blog posts and presentations on it. Have you already used the cache.aspx and stats.aspx to see what happens? You can find these in the Admin section of the Control Panel....
Michael West's user avatar
  • 18.2k
1 vote
Accepted

Lost on HTML Output Caching in SXA

There can be other reasons why the website is at 100%, sometimes this won't be mitigated by caching. It depends on how your current setup is and what components you have in place, as you need to ...
Cristi Vulturar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible