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.
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.