Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Kagesenshi: plone.app.caching and archetype.fieldtraverser

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

Viewing all articles
Browse latest Browse all 3535

Trending Articles