Should I extend JXTemplateGenerator so it is a cached component? I understand it gets the validity methods to implement then. So every time I call my extended component from flow I pass also the validity calculated in flow. Something like this:
function niceCachedResponse() {
var cacheKey = cocoon.request.get( "abc" ) + "!!spacer!!"
+ cocoon.request.get( "bcd" ) + "!!spacer!!"
+ cocoon.session.getAttribute( "xxx" );
var pageValidity = new DeltaTimeCacheValidity( 60 * 60 * 24 );
// one day
cocoon.sendPage( "view/cached.jx", {
JXTGExtCacheKey: cacheKey,
JXTGExtpageValidity: pageValidity
someOtherBizData: data } );
}Does it have a chance to work ?
Leszek Gawron
