On Mon, Jan 10, 2005 at 10:21:13PM +0100, Erik Bruchez wrote:

> When you say "change a static XML file", is the last modification date 
> of the file on disk updated to a more recent date? Just saying this 

Yes, I use "vi" to update it ;-).

> This said, if your last modification date is updated, it should work. If 
> it doesn't, can you try adding:
> 
>    <cache-control><use-local-cache>false</...></...>
> 
> to your config, and see what happens?

To what config, where should I put this?

> BTW, caching of the File serializer was broken pre-2.6 in some 
> situations, but it was fixed for 2.6 if I believe the CVS logs.

It's not specifically related to the file-serializer.  The piece
of code that is exacuted is:

      <p:processor name="oxf:scope-serializer">
        <p:input name="config">
          <config>
            <key>ident</key>
            <scope>session</scope>
          </config>
        </p:input>
        <p:input name="data" href="params/ident.xml"/>
      </p:processor>

      <p:processor name="oxf:identity">
        <p:input name="data" href="params/ident.xml"/>
        <p:output name="data" id="curr-ident" ref="ident-config"/>
      </p:processor>

      <!-- debug -->
      <p:processor name="oxf:file-serializer">
        <p:input name="config">
          <config><directory>/tmp</directory><file>debug2x.xml</file></config>
        </p:input>
        <p:input name="data" href="params/ident.xml"/>
      </p:processor>

I didn't check the scope, but at least the identity and the file-serializer
seem to get the wrong (old) contents in *most* cases.  That is, at some
moments a change I make in params/ident.xml is visible at the next try,
in other cases it never seems to appear and I have to restart Tomcat.

Later today, I want to install the 2.7 tree and continue working with
that, just to be sure about the environment.

-- 
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to