Sitecore XSL cache

2019-08-27 03:20发布

问题:

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>


标签: sitecore