Caching Problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Caching Problem

Ryan Puddephatt
All,
    I have a problem with caching, my page makes changes to an xml doc and saves it. When I reload the page, it appears to be pulling it from the cache (minus the changes), because I've opened the xml file and there are there
 
Is there any way to stop OPS caching a document?
 
Thanks Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Caching Problem

Alessandro  Vernet
Administrator
Ryan,

The best way would be fix the caching issue :). Would you be able to
create a pipeline that reproduces the problem, maybe reading a file,
doing a change, writing the XML in the file, and reading the file
again?

Alex

On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:

>
>
> All,
>     I  have a problem with caching, my page makes changes to an xml doc and saves it.  When I reload the page, it appears to be pulling it from the cache (minus the  changes), because I've opened the xml file and there are  there
>
> Is there any way to  stop OPS caching a document?
>
> Thanks  Ryan
>
>
>
>
> Ryan  Puddephatt
> Software  Engineer
>
>
> Teleflex Group - IT  UK
> 1 Michaelson  Square
> Livingston
> West  Lothian
> Scotland
> EH54  7DP
>
> e> [hidden email]
> t>  +44(0)1506 407 110
> f> +44(0)1506 407  108
> w> www.teleflex.com
>
>
>


--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Caching Problem

Erik Bruchez
Administrator
Ryan,

How do you reload the page? With your browser's reload function?

How is that modified XML file involved in the final page?

-Erik

Alessandro Vernet wrote:

> Ryan,
>
> The best way would be fix the caching issue :). Would you be able to
> create a pipeline that reproduces the problem, maybe reading a file,
> doing a change, writing the XML in the file, and reading the file
> again?
>
> Alex
>
> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
>>
>>
>> All,
>>     I  have a problem with caching, my page makes changes to an xml
>> doc and saves it.  When I reload the page, it appears to be pulling it
>> from the cache (minus the  changes), because I've opened the xml file
>> and there are  there
>>
>> Is there any way to  stop OPS caching a document?
>>
>> Thanks  Ryan
>>
>>
>>
>>
>> Ryan  Puddephatt
>> Software  Engineer
>>
>>
>> Teleflex Group - IT  UK
>> 1 Michaelson  Square
>> Livingston
>> West  Lothian
>> Scotland
>> EH54  7DP
>>
>> e> [hidden email]
>> t>  +44(0)1506 407 110
>> f> +44(0)1506 407  108
>> w> www.teleflex.com
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Caching Problem

Ryan Puddephatt
I'll get an example together

XML is modified in Xforms then saved via a submission.

I've check the file and its changed

I reload the page, using browser reload (I've cleared the cache and done a
full reload), and it comes up with the original, unedited data

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 19 October 2006 19:13
>To: [hidden email]
>Subject: Re: [ops-users] Caching Problem
>
>Ryan,
>
>How do you reload the page? With your browser's reload function?
>
>How is that modified XML file involved in the final page?
>
>-Erik
>
>Alessandro Vernet wrote:
>> Ryan,
>>
>> The best way would be fix the caching issue :). Would you be able to
>> create a pipeline that reproduces the problem, maybe reading a file,
>> doing a change, writing the XML in the file, and reading the file
>> again?
>>
>> Alex
>>
>> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
>>>
>>>
>>> All,
>>>     I  have a problem with caching, my page makes changes to an xml
>>> doc and saves it.  When I reload the page, it appears to be pulling
>>> it from the cache (minus the  changes), because I've opened the xml
>>> file and there are  there
>>>
>>> Is there any way to  stop OPS caching a document?
>>>
>>> Thanks  Ryan
>>>
>>>
>>>
>>>
>>> Ryan  Puddephatt
>>> Software  Engineer
>>>
>>>
>>> Teleflex Group - IT  UK
>>> 1 Michaelson  Square
>>> Livingston
>>> West  Lothian
>>> Scotland
>>> EH54  7DP
>>>
>>> e> [hidden email]
>>> t>  +44(0)1506 407 110
>>> f> +44(0)1506 407  108
>>> w> www.teleflex.com
>
>--
>Orbeon - XForms Everywhere:
>http://www.orbeon.com/blog/
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Caching Problem

Ryan Puddephatt
Alex/Erik,
        Attached are three files, I had them in /pages/test with the
following entries in the page flow

    <c:page id="test-page"
        path-info="/test/"
        view="oxf:/pages/test/view.xhtml"/>
   
    <c:page id="test-page-save"
        path-info="/test/save"
        model="oxf:/pages/test/save.xpl"/>

The problem seems intermitent, but still there, try random combinations and
then refreshing the page. I used Firefox to test, but I can't see it being a
problem.

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Ryan Puddephatt [mailto:[hidden email]]
>Sent: 20 October 2006 10:25
>To: [hidden email]
>Subject: RE: [ops-users] Caching Problem
>
>I'll get an example together
>
>XML is modified in Xforms then saved via a submission.
>
>I've check the file and its changed
>
>I reload the page, using browser reload (I've cleared the
>cache and done a full reload), and it comes up with the
>original, unedited data
>
>Ryan
>
>Ryan Puddephatt
>Software Engineer
>
>Teleflex Group - IT UK
>1 Michaelson Square
>Livingston
>West Lothian
>Scotland
>EH54 7DP
>
>e> [hidden email]
>t> +44(0)1506 407 110
>f> +44(0)1506 407 108
>
>
>
>>-----Original Message-----
>>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>>Bruchez
>>Sent: 19 October 2006 19:13
>>To: [hidden email]
>>Subject: Re: [ops-users] Caching Problem
>>
>>Ryan,
>>
>>How do you reload the page? With your browser's reload function?
>>
>>How is that modified XML file involved in the final page?
>>
>>-Erik
>>
>>Alessandro Vernet wrote:
>>> Ryan,
>>>
>>> The best way would be fix the caching issue :). Would you
>be able to
>>> create a pipeline that reproduces the problem, maybe
>reading a file,
>>> doing a change, writing the XML in the file, and reading the file
>>> again?
>>>
>>> Alex
>>>
>>> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
>>>>
>>>>
>>>> All,
>>>>     I  have a problem with caching, my page makes changes
>to an xml
>>>> doc and saves it.  When I reload the page, it appears to
>be pulling
>>>> it from the cache (minus the  changes), because I've
>opened the xml
>>>> file and there are  there
>>>>
>>>> Is there any way to  stop OPS caching a document?
>>>>
>>>> Thanks  Ryan
>>>>
>>>>
>>>>
>>>>
>>>> Ryan  Puddephatt
>>>> Software  Engineer
>>>>
>>>>
>>>> Teleflex Group - IT  UK
>>>> 1 Michaelson  Square
>>>> Livingston
>>>> West  Lothian
>>>> Scotland
>>>> EH54  7DP
>>>>
>>>> e> [hidden email]
>>>> t>  +44(0)1506 407 110
>>>> f> +44(0)1506 407  108
>>>> w> www.teleflex.com
>>
>>--
>>Orbeon - XForms Everywhere:
>>http://www.orbeon.com/blog/
>>
>>
>
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

instance.xml (935 bytes) Download Attachment
save.xpl (817 bytes) Download Attachment
view.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Caching Problem

Alessandro  Vernet
Administrator
In reply to this post by Ryan Puddephatt
Hi Ryan,

I looked at the attached example. I can load the page /test/, which
when you click on a button, the XForms calls save.xpl which saves the
instance in the file instance.xml, store in the resources. This is the
same file that gets used by the view when it loads.

I could hit the buttons to change the 'status' in the instance, then
do a shift-reload, and see the new values, which confirms that the
instance has been correctly saved. I tried this a few times, and
didn't see any problem. What was the issue in your case, and what was
your use case to reproduce it?

Alex

On 10/20/06, Ryan Puddephatt <[hidden email]> wrote:

> I'll get an example together
>
> XML is modified in Xforms then saved via a submission.
>
> I've check the file and its changed
>
> I reload the page, using browser reload (I've cleared the cache and done a
> full reload), and it comes up with the original, unedited data
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
> >Erik Bruchez
> >Sent: 19 October 2006 19:13
> >To: [hidden email]
> >Subject: Re: [ops-users] Caching Problem
> >
> >Ryan,
> >
> >How do you reload the page? With your browser's reload function?
> >
> >How is that modified XML file involved in the final page?
> >
> >-Erik
> >
> >Alessandro Vernet wrote:
> >> Ryan,
> >>
> >> The best way would be fix the caching issue :). Would you be able to
> >> create a pipeline that reproduces the problem, maybe reading a file,
> >> doing a change, writing the XML in the file, and reading the file
> >> again?
> >>
> >> Alex
> >>
> >> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
> >>>
> >>>
> >>> All,
> >>>     I  have a problem with caching, my page makes changes to an xml
> >>> doc and saves it.  When I reload the page, it appears to be pulling
> >>> it from the cache (minus the  changes), because I've opened the xml
> >>> file and there are  there
> >>>
> >>> Is there any way to  stop OPS caching a document?
> >>>
> >>> Thanks  Ryan
> >>>
> >>>
> >>>
> >>>
> >>> Ryan  Puddephatt
> >>> Software  Engineer
> >>>
> >>>
> >>> Teleflex Group - IT  UK
> >>> 1 Michaelson  Square
> >>> Livingston
> >>> West  Lothian
> >>> Scotland
> >>> EH54  7DP
> >>>
> >>> e> [hidden email]
> >>> t>  +44(0)1506 407 110
> >>> f> +44(0)1506 407  108
> >>> w> www.teleflex.com
> >
> >--
> >Orbeon - XForms Everywhere:
> >http://www.orbeon.com/blog/
> >
> >
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Caching Problem

Ryan Puddephatt
Alex,
        When using the example all I did was click randomly on three or four
buttons, and shift-reload the page. The page returned the same results on
refresh. Could this be a tomcat problem instead? Seems strange that it works
for you, both my windows and unix machines have the problem. Maybe there is
something I can dig into? I'll try debugging it my end and seeing if I can
find more information about the problem

Thanks for looking into it

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]] On Behalf
>Of Alessandro Vernet
>Sent: 27 October 2006 19:32
>To: [hidden email]
>Subject: Re: [ops-users] Caching Problem
>
>Hi Ryan,
>
>I looked at the attached example. I can load the page /test/,
>which when you click on a button, the XForms calls save.xpl
>which saves the instance in the file instance.xml, store in
>the resources. This is the same file that gets used by the
>view when it loads.
>
>I could hit the buttons to change the 'status' in the
>instance, then do a shift-reload, and see the new values,
>which confirms that the instance has been correctly saved. I
>tried this a few times, and didn't see any problem. What was
>the issue in your case, and what was your use case to reproduce it?
>
>Alex
>
>On 10/20/06, Ryan Puddephatt <[hidden email]> wrote:
>> I'll get an example together
>>
>> XML is modified in Xforms then saved via a submission.
>>
>> I've check the file and its changed
>>
>> I reload the page, using browser reload (I've cleared the cache and
>> done a full reload), and it comes up with the original, unedited data
>>
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>
>> e> [hidden email]
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>>
>>
>>
>> >-----Original Message-----
>> >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
>> >Bruchez
>> >Sent: 19 October 2006 19:13
>> >To: [hidden email]
>> >Subject: Re: [ops-users] Caching Problem
>> >
>> >Ryan,
>> >
>> >How do you reload the page? With your browser's reload function?
>> >
>> >How is that modified XML file involved in the final page?
>> >
>> >-Erik
>> >
>> >Alessandro Vernet wrote:
>> >> Ryan,
>> >>
>> >> The best way would be fix the caching issue :). Would you be able
>> >> to create a pipeline that reproduces the problem, maybe reading a
>> >> file, doing a change, writing the XML in the file, and
>reading the
>> >> file again?
>> >>
>> >> Alex
>> >>
>> >> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
>> >>>
>> >>>
>> >>> All,
>> >>>     I  have a problem with caching, my page makes changes to an
>> >>> xml doc and saves it.  When I reload the page, it appears to be
>> >>> pulling it from the cache (minus the  changes), because I've
>> >>> opened the xml file and there are  there
>> >>>
>> >>> Is there any way to  stop OPS caching a document?
>> >>>
>> >>> Thanks  Ryan
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Ryan  Puddephatt
>> >>> Software  Engineer
>> >>>
>> >>>
>> >>> Teleflex Group - IT  UK
>> >>> 1 Michaelson  Square
>> >>> Livingston
>> >>> West  Lothian
>> >>> Scotland
>> >>> EH54  7DP
>> >>>
>> >>> e> [hidden email]
>> >>> t>  +44(0)1506 407 110
>> >>> f> +44(0)1506 407  108
>> >>> w> www.teleflex.com
>> >
>> >--
>> >Orbeon - XForms Everywhere:
>> >http://www.orbeon.com/blog/
>> >
>> >
>>
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>[hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page:
>> http://www.objectweb.org/wws
>>
>>
>>
>
>
>--
>Blog (XML, Web apps, Open Source):
>http://www.orbeon.com/blog/
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Caching Problem

Alessandro  Vernet
Administrator
Ryan,

Was the instance updated on disk before you did the shift-reload? If
you have step by step instructions that I can follow to reproduce this
problem, just let me know. Since this is not something that we can
just run in the XForms sandbox, you might also want to attach a test
war file, just without the content of the WEB-INF/lib.

Alex

On 10/28/06, Ryan Puddephatt <[hidden email]> wrote:

> Alex,
>         When using the example all I did was click randomly on three or four
> buttons, and shift-reload the page. The page returned the same results on
> refresh. Could this be a tomcat problem instead? Seems strange that it works
> for you, both my windows and unix machines have the problem. Maybe there is
> something I can dig into? I'll try debugging it my end and seeing if I can
> find more information about the problem
>
> Thanks for looking into it
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>
>
> >-----Original Message-----
> >From: [hidden email] [mailto:[hidden email]] On Behalf
> >Of Alessandro Vernet
> >Sent: 27 October 2006 19:32
> >To: [hidden email]
> >Subject: Re: [ops-users] Caching Problem
> >
> >Hi Ryan,
> >
> >I looked at the attached example. I can load the page /test/,
> >which when you click on a button, the XForms calls save.xpl
> >which saves the instance in the file instance.xml, store in
> >the resources. This is the same file that gets used by the
> >view when it loads.
> >
> >I could hit the buttons to change the 'status' in the
> >instance, then do a shift-reload, and see the new values,
> >which confirms that the instance has been correctly saved. I
> >tried this a few times, and didn't see any problem. What was
> >the issue in your case, and what was your use case to reproduce it?
> >
> >Alex
> >
> >On 10/20/06, Ryan Puddephatt <[hidden email]> wrote:
> >> I'll get an example together
> >>
> >> XML is modified in Xforms then saved via a submission.
> >>
> >> I've check the file and its changed
> >>
> >> I reload the page, using browser reload (I've cleared the cache and
> >> done a full reload), and it comes up with the original, unedited data
> >>
> >> Ryan
> >>
> >> Ryan Puddephatt
> >> Software Engineer
> >>
> >> Teleflex Group - IT UK
> >> 1 Michaelson Square
> >> Livingston
> >> West Lothian
> >> Scotland
> >> EH54 7DP
> >>
> >> e> [hidden email]
> >> t> +44(0)1506 407 110
> >> f> +44(0)1506 407 108
> >>
> >>
> >>
> >> >-----Original Message-----
> >> >From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik
> >> >Bruchez
> >> >Sent: 19 October 2006 19:13
> >> >To: [hidden email]
> >> >Subject: Re: [ops-users] Caching Problem
> >> >
> >> >Ryan,
> >> >
> >> >How do you reload the page? With your browser's reload function?
> >> >
> >> >How is that modified XML file involved in the final page?
> >> >
> >> >-Erik
> >> >
> >> >Alessandro Vernet wrote:
> >> >> Ryan,
> >> >>
> >> >> The best way would be fix the caching issue :). Would you be able
> >> >> to create a pipeline that reproduces the problem, maybe reading a
> >> >> file, doing a change, writing the XML in the file, and
> >reading the
> >> >> file again?
> >> >>
> >> >> Alex
> >> >>
> >> >> On 10/19/06, Ryan Puddephatt <[hidden email]> wrote:
> >> >>>
> >> >>>
> >> >>> All,
> >> >>>     I  have a problem with caching, my page makes changes to an
> >> >>> xml doc and saves it.  When I reload the page, it appears to be
> >> >>> pulling it from the cache (minus the  changes), because I've
> >> >>> opened the xml file and there are  there
> >> >>>
> >> >>> Is there any way to  stop OPS caching a document?
> >> >>>
> >> >>> Thanks  Ryan
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >>> Ryan  Puddephatt
> >> >>> Software  Engineer
> >> >>>
> >> >>>
> >> >>> Teleflex Group - IT  UK
> >> >>> 1 Michaelson  Square
> >> >>> Livingston
> >> >>> West  Lothian
> >> >>> Scotland
> >> >>> EH54  7DP
> >> >>>
> >> >>> e> [hidden email]
> >> >>> t>  +44(0)1506 407 110
> >> >>> f> +44(0)1506 407  108
> >> >>> w> www.teleflex.com
> >> >
> >> >--
> >> >Orbeon - XForms Everywhere:
> >> >http://www.orbeon.com/blog/
> >> >
> >> >
> >>
> >>
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the
> >[hidden email] mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> ObjectWeb mailing lists service home page:
> >> http://www.objectweb.org/wws
> >>
> >>
> >>
> >
> >
> >--
> >Blog (XML, Web apps, Open Source):
> >http://www.orbeon.com/blog/
> >
> >
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet