本文介绍了Sitecore 8.1输出缓存未清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在使用ASP.NET MVC编写的Azure Web应用中托管的不同服务器上有CA和CD。
我添加了下面的内容,以便在发布结束时清除输出缓存。<event name="indexing:end:remote">
<handler type="Sitecore.ContentSearch.Maintenance.IndexDependentHtmlCacheManager, Sitecore.ContentSearch" method="Clear"/>
</event>
但是,输出缓存不会被清除,网站内容也不会更新。
我需要在上面进行的任何配置?
谢谢。
推荐答案
您可能缺少可伸缩性设置。因为它们是不同的服务器,所以您的CD需要知道将发布哪个服务器(Publishing.PublishingInstance)。这样它就可以读取远程发布事件并适当地触发。
请参阅App_ConfigInclude文件夹中的"ScalabilitySettings.config.example"。
<!-- INSTANCE NAME
Unique name for Sitecore instance.
Default value: (machine name and IIS site name)
-->
<setting name="InstanceName">
<patch:attribute name="value"></patch:attribute>
</setting>
<!-- PUBLISHING INSTANCE
Assigns the instance name of dedicated Sitecore installation for publishing operations.
When empty, all publishing operations are performed on the local installation of Sitecore.
Default vaue: (empty)
-->
<setting name="Publishing.PublishingInstance">
<patch:attribute name="value"></patch:attribute>
</setting>
正如@Wesley Lomax指出的那样,您还需要在远程发布上为您的站点运行HTML缓存清除器:Content does not reflect on CD server after publishing from CM server
这篇关于Sitecore 8.1输出缓存未清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!