plone.caching所有304的截获错误

时间:2012-10-23 13:57:09

标签: plone

我最近开始将plone.caching规则集声明添加到我的视图中:

<cache:ruleset
    for=".views.MyContentTypeView"
    ruleset="plone.content.itemView"
    />

我已经开始在我的开发网站的日志中看到这些:

2012-10-23 14:48:02 ERROR Zope.SiteErrorLog 1351000082.330.867850813917 http://localhost:12311/my_content_type/@@landing
Traceback (innermost last):
  Module ZPublisher.Publish, line 117, in publish
  Module zope.event, line 31, in notify
  Module zope.component.event, line 24, in dispatch
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module plone.caching.hooks, line 102, in intercept
Intercepted

来自hooks.py,在intercept()的docstring中:

To properly abort request processing, this will raise an exception. The
actual response (typically an empty response) is then set via a view on
the exception. We set and lock the response status to avoid defaulting to
a 404 exception.

因此看起来这些错误可能是预期的行为?如果是这样,是否可以让Zope忽略这些错误,这样它们就不会混乱我的日志?

0 个答案:

没有答案