cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rui Alberto <rui-l-goncal...@ptinovacao.pt>
Subject JXTemplateGenerator caching
Date Fri, 21 Jul 2006 15:19:55 GMT
Hi,

I'm trying to cache a document generated by JXTemplateGenerator.
After reading some threads about making JXTemplateGenerator cacheable,
I've tried:

<selectElemType elemTypeKey="${cocoon.request.elemTypeKey}"
  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
  jx:cache-key="testing key"
  jx:cache-validity="${org.apache.cocoon.caching.NOPCacheValidity()}"
  date="${java.util.Date().toString()}"/>

and in sitemap.xmap:

<map:generate src="text.xml" type="jx"/>
<map:serialize type="xml"/>

attribute date value changes after each request. Shouldn't result be
cached, and the date value always the same?

What I'm missing here?
Thanks for any help you cloud provide.
Rui




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message