Jeremias,
Jeremias Maerki wrote:
Clay,
you're using FOP from the command-line exclusively, right? In that case resetting the image cache will bring you absolutely nothing, because there's no cache between calls to FOP as each time a new VM is started. resetCache() is only having an effect if you're running FOP in a server process.
resetCache() simply releases the memory used by the cached images. When calling FOP from the command-line the memory is also released when the VM exits. So there's no point in creating a CLI for resetCache(), I'm afraid.
While it's true that I primarily call FOP from the command line, I've been dabbling in other means as well. As for image caching, I've found that FOP _appears_ to be caching my images when I call FOP through the command line. I have an image url('images/logo.jpg') I use in my template which puts the company logo in the upper-left corner of the page. My thought was that FOP newbie clients could replace logo.jpg with their own logo (assuming it's got the same dimensions), and they'd see their company logo. Unfortunately, FOP caches 'logo.jpg' so that the 'old' logo shows up on subsequent print jobs. I have to actually modify the name of then image in my template (instead of logo.jpg I use company_logl.jpg), to get it to work.
BTW, I just tried running FOP using logo.jpg, then replacing the logo.jpg file with a different logo, and it continues to use some sort of 'cached' logo.jpg file. Unfortunately, this means (as you correctly infer) that 'resetCache()' doesn't *do* anything. However it also means I don't have a way to clear the 'cache' (for lack of a better term).
If it's not caching, I don't know what it's doing, but the end result is I can't easily replace an image file to get a different image to load.
Web Maestro Clay
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
