Sitecore doesn't show changes on page unless recycle AppPool

橙三吉。 提交于 2019-12-11 14:03:37

问题


Sitecore Version: Sitecore 7.2

I have an control that queries web index to get item, but when new items are added or old items are edited, the changes won't show on page.

I tried:

  • Disable htmlcache in web.config
  • Republish items and go to web database to make sure they are in web
  • Rebuild web index and use the same query (from search.log) in Luke to check the query result
  • Clear cache using /sitecore/admin/cache.aspx tool
  • Recycle AppPool in IIS (only this worked)

The items are in web database and web index, just won't appear on page unless I recycle AppPool.


回答1:


Per previous comments, you need to rule out IIS caching. This can be Kernel-mode caching and regular output caching. It can also be compression. If you have configured compression and identified the MIME type as static then IIS will create a compressed copy of the file in a temp dir.

Remember that items are also (potentially) cached, not just HTML. So you should disable all caching in all the various locations in config. Use the Caching Configuration Reference and Optimizing Performance documents from the SDN and work backwards.

You can use Sitecore's cache stats page to see if the components are being cached or not (at a sublayout/rendering level) http://mysite/sitecore/admin/cache.aspx. Try hitting the reset button there and reloading your page.

There are lots of caching levels in Sitecore.



来源:https://stackoverflow.com/questions/26870792/sitecore-doesnt-show-changes-on-page-unless-recycle-apppool

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