I have a problem where when I publish an item in an SXA site, the cache does not get cleared for that site. I have a Sitecore 9.0.2 solution and the SXA site has a two "Site Grouping" items; one for master DB and one for web DB, named "Local Machine CM" and "Local Machine CD". What I find is that when viewing the Local Machine CD (which is using web) any published changes seem to cause a cache clear for the site "Local Machine CM" (which uses master). i.e. The HtmlCacheClearer class is only clearing the cache for CM. Is there some way to configure it to clear for both? I decompiled and recreated within my solution the class Sitecore.XA.Foundation.Multisite.EventHandlers.HtmlCacheClearer, Sitecore.XA.Foundation.Multisite which confirms this behaviour. I can make a code change to this class to change the behaviour, but am wondering if there is a more official way to do this?

  • Raise a Sitecore Support bug? :) – Marek Musielak Jan 23 at 8:31
  • Are you using the environment name to differentiate between the two? By default it uses a wildcard but you can customize the name. – Michael West Jan 23 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.