Sitecore XSL cache

☆樱花仙子☆ 提交于 2019-12-12 03:07:52

问题


Hi can any tell me how we can clear the XSL cache in Sitecore 6.2. When i publish my XSLT code files from staging to production I have a cache problem because of which the content or the images which are rendered using this xslt code are not rendered even when I havent opened a particular URL before. When i clear the cache using \sitecore\admin\cache.aspx some time later after that I can see the content displaying. But i cannot suggest my customers to clear the cache when ever a new file is published to production. Is there any way where we can clear the caching done by XSLT files. Please help.


回答1:


You are already doing the right thing: after publishing the XSLT files from staging to production, you need to clear the cache with the \sitecore\admin\cache.aspx page. This is about server-side cache so it will clear the cache for all your visitors.




回答2:


I don't use XSL renderings very often but from what I can see, the XslWatcher should clear the XSL cache when XSL files are added, removed, changed, or renamed. Can you confirm that you have the following configuration elements in your Web.config?

In system.web or system.webServer HTTP modules:

<add type="Sitecore.IO.XslWatcher, Sitecore.Kernel" name="SitecoreXslWatcher" />

In /sitecore/watchers:

  <xsl>
    <folder>/</folder>
    <filter>*.xslt</filter>
  </xsl>


来源:https://stackoverflow.com/questions/10137461/sitecore-xsl-cache

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!