本文介绍了除非回收AppPool,否则Sitecore不会在页面上显示更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sitecore版本:Sitecore 7.2

Sitecore Version: Sitecore 7.2

我有一个控件,可以查询Web索引来获取项目,但是当添加新项目或编辑旧项目时,所做的更改就可以了

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.

我尝试过:


  • 在网络中禁用htmlcache .config

  • 重新发布项目并转到Web数据库以确保它们位于Web中。

  • 重建Web索引并使用相同的查询(来自搜索)。 log)中以检查查询结果

  • 使用/sitecore/admin/cache.aspx工具清除缓存

  • 在IIS中回收AppPool(仅此操作)

  • 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)

这些项目位于Web数据库和Web索引中,除非我回收AppPool,否则它们不会显示在页面上。

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

推荐答案

对于以前的注释,您需要排除IIS缓存。这可以是内核模式缓存和常规输出缓存。也可以是压缩。如果您已配置压缩并将MIME类型标识为静态,则IIS将在临时目录中创建该文件的压缩副本。

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.

请记住,项目也是(可能)缓存,而不仅仅是HTML。因此,您应该禁用config中所有各个位置的所有缓存。使用SDN上的缓存配置参考和优化性能文档,然后向后工作。

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.

您可以使用Sitecore的缓存统计信息页面查看组件是否被缓存(位于子布局/渲染级别) http://mysite/sitecore/admin/cache.aspx 。尝试点击那里的重置按钮并重新加载页面。

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.

Sitecore中有很多缓存级别。

There are lots of caching levels in Sitecore.

这篇关于除非回收AppPool,否则Sitecore不会在页面上显示更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 05:50