Clay,
that's almost spooky. It almost appears as if the file system cache is
malfunctioning on your system since it's not recognizing if a file is
replaced. I'm very confident when I'm saying that FOP itself has no
means to cache anything if you're starting FOP from the command-line for
each file you're processing. The only entity that is then capable of
showing this behaviour is a faulty file system cache. But that seems to
be unlikely. The only thing now coming to my mind is that you might be
holding your logos on a remote file system like NFS or via SMB. If you
do, try working on a local harddrive to see if it behaves differently.
You're using relative URLs. You're not getting the logo from a webserver
via HTTP or something, right? But even if you do, I couldn't explain why
your system still appears to be caching the logos.
I could be wrong about some of this but it sounds real strange. Maybe
someone else has a better idea about what's going on.
On 05.05.2004 21:15:48 Clay Leeds wrote:
> 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.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]