plone.app.caching and archetype.fieldtraverser

plone.app.caching doesnt seem to support archetype.fieldtraverser's ++atfield+FieldName urls. Here's a quick hack to make it cacheable.

Add this into your configure.zcml:

<configure 
    ...
    xmlns:cache="http://namespaces.zope.org/cache"
    ...
    />
...
<cache:ruleset
    for="archetypes.fieldtraverser.fieldtraverser.FieldContentView"
    ruleset="plone.content.itemView"
/>
...

</configure>

Thats it. It should be following the contentItem caching rule settings afterward.

Comments

Popular posts from this blog

Tee'ing Python subprocess.Popen output

Consolidated community site infrastructure on Plone

Adding simple popup to Plone frontpage