You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rui Alberto <ru...@ptinovacao.pt> on 2006/07/21 17:19:55 UTC

JXTemplateGenerator caching

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