Quantcast
Viewing all articles
Browse latest Browse all 3535

Kagesenshi: 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.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 3535

Trending Articles