Maybe it should be called after rendering every page
This would defeat the purpose of caching, wouldn't it? Anyway, this would mean calling it from within FOP, which isn't something Cocoon can do for you. Also, the images are kept for referencing purposes and possibly delayed serializing until the end of a rendering anyway.
Is it safe to call this method while images are being rendered (for other requests)?
It should be safe with the most recent FOP release. I don't recall anyone claiming to have tested this though.
If you have a servlet that generates a different image each time it is calledwith the same URL
you need to use a constantly changing dummy parameter on the URL to avoid caching.
This is for getting dynamically generated images. For example, if you use <fo:extarnal-graphic src="http://localhost:9000/current-time-image.png"/> multiple times, all the images will show the same date/time. If you want to have the actual time the image was generated, you have to use the dummy parameter so that each fo:external-graphic has its own unique source URL. Note that this *increases* cache load, probably exactly the opposite of what you want to achieve.
J.Pietschmann
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
