On 03.05.2004 09:35, zze-e-photo FRAS E ext FTRD/DMI/REN wrote:

After more investigation, the use case is the following :

To improve performance in Tomcat, it is possible to disable the checking
system for JSP file modification. I would like to do exactly the same with the JSPGenerator (and also the
JSPReader) in Cocoon.
So, I don't know if I really need to cache the result of the generator
or if there is better way to just avoid Cocoon checking if the JSP file
has been changed.

Cocoon's caching caches the *result* of the generator, so Jasper is not asked at all for new content if the cache is still valid. What I suggested (using NOPValidity) is so probably the wrong way, as the result of the first access would be always valid and used.


Something like a "check for file modification" is not applicable for the JSPGenerator as it only resolves the path to the JSP file and gives this path to Jasper. I guess then Tomcat's "check for file modification" comes into play - or not if deactivated. So it should just work as it is.

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to