Silverlight 4 caching issue?

Posted by DavidS on Stack Overflow See other posts from Stack Overflow or by DavidS
Published on 2011-01-11T09:40:23Z Indexed on 2011/01/11 13:53 UTC
Read the original article Hit count: 169

Filed under:
|
|

I am currently experiencing a weird caching problem it would seem. When I load my data intially, I return all the data within given dates and my graph looks as follows:

alt text

Then I filter the data to return a subset of the original data for the same date range (not that it matters) and I get the following view of my data:

alt text

However, I intermittently get the following when I refresh the same filterd view of the data:

alt text

One can see that not all the data gets cached but only some of it i.e. for 12 Dec 2010 and 5 dec 2010(not shown here). I've looked at my queries and the correct data is getting pulled out. It is only on the presentation layer i.e. on Mainpage.xaml.cs that this erroneous data seems to exist.

I've stepped through the code and the data is corect through all the layers except on the presentation layer. Has anyone experienced this before? Is there some sort of caching going in the background that is keeping that data in the background as I've got browser caching off?

I am using the LoadOperation in the callback method within the Load method of the DomainContext if that helps...

© Stack Overflow or respective owner

Related posts about caching

Related posts about silverlight-4.0