Sitecore XSL cache

2019-08-27 02:49发布

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.

标签: sitecore
2条回答
smile是对你的礼貌
2楼-- · 2019-08-27 03:19

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>
查看更多
狗以群分
3楼-- · 2019-08-27 03:36

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.

查看更多
登录 后发表回答