I am trying to upgrade my application from Sitecore 9.0.2 to 9.3.
In my sitecore.config
file, I have below setting :
<event name="publish:end">
<handler type="Sitecore.Publishing.SmartHtmlCacheClearer, Sitecore.Kernel" method="ClearCache" resolve="true"/>
<handler type="Sitecore.Publishing.RenderingParametersCacheClearer, Sitecore.Kernel" method="ClearCache"/>
</event>
In the previous version, instead of Sitecore.Publishing.SmartHtmlCacheClearer
, it was Sitecore.Publishing.HtmlCacheClearer
.
I have multiple sites, and I want to clear the HTML cache for each site. I have created a setting.config file with the below settings:
<events>
<event name="publish:end">
<handler type="Sitecore.Publishing.SmartHtmlCacheClearer, Sitecore.Kernel" method="ClearCache" resolve="true"/>
<sites hint=list">
<site name="WWW_EN_US">WWW_EN_US</site>
<site name="WWW_EN_CA">WWW_EN_CA</site>
<site name="WWW_FR_CA">WWW_FR_CA</site>
<site name="WWW_DE_AT">WWW_DE_AT</site>
<site name="WWW_DE_DE">WWW_DE_DE</site>
When I run my application, I get the below exceptions:
17412 18:53:20 ERROR Exception in schedule agent: Sitecore.ListManagement.Operations.UpdateListOperationsAgent
Exception: System.InvalidOperationException
Message: Could not find property 'site' on object of type: Sitecore.Publishing.SmartHtmlCacheClearer
Source: Sitecore.Kernel
at Sitecore.Configuration.DefaultFactory.AssignProperties(Object obj, Object[] properties)
at Sitecore.Configuration.DefaultFactory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, Boolean assert)
at Sitecore.Events.Event.EventSubscribers.Add(String eventName, XmlNode configNode)
at Sitecore.Events.Event.BuildConfigSubscribersFromConfiguration()
at Sitecore.DependencyInjection.LazyResetable`1.get_Value()
at Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters)
at Sitecore.Abstractions.BaseJob.Start()
at Sitecore.Jobs.DefaultJobManager.RunJob(BaseJob job)
at Sitecore.Jobs.DefaultJobManager.ProcessQueue()
at Sitecore.Tasks.Scheduler.Agents.Agent.StartJob(BaseJob job)
at Sitecore.Tasks.Scheduler.Agents.Agent.RunAgentJob()
at Sitecore.Tasks.Scheduler.Agents.Agent.Execute()
at Sitecore.Tasks.DefaultScheduler.Execute(BaseAgent agent)
Can someone please help.