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>