Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cache dependencies

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I have an XmlDocument which I am storing in Cache - and it has a dependency on a file.

I am finding my callback method is being called very erratically - it works when I modify the xml myself, but when I save to it after submitting a form, the cache is emptied, but not replaced

Any ideas?

Also if I save the xml file say 5 times in a row quickly, the same thing happens.

<bb/>
 
GIGN: I've not worked with xml files, so your problem may be unique there. I have used Cache in several places on my web site but always with backup code to re-construct the cache object when it is called for -- just in case it's not there! My understanding is that the Cache may be removed randomly by the garbage collection system if server resources are needed; and they are certainly time dependent, etc...

 
Yeah, I am of a similar opinion, I will have to implement cache insertion by anything which modifies a cache dependency.

I just can't stand things which don't work for seemingly no reason.

It would be nice to have a global handler though ;-)

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top