Groups | Blog | Home
all groups > asp.net caching > february 2004 >

asp.net caching : when cachin XML should I cache the Document object or just the string?



Jerry III
2/24/2004 7:25:18 PM
It depends. If you're not going to modify the XML (and you shouldn't if
you're going to cache it) just cache the document. As long as you keep the
document read only (so you don't run into synchronization issues) you'll be
fine. But be careful, XmlDocument is not officially thread safe.

Jerry

[quoted text, click to view]

Moshe Plotkin
2/24/2004 8:34:00 PM
B"H

I know its simple, but hey I dont know the answer.


Thanks

Jerry III
2/26/2004 9:14:46 AM
No, as long as you don't modify the objects once you cache them.

Jerry

[quoted text, click to view]

Moshe Plotkin
2/26/2004 9:38:58 AM
B"H

Does That change if I'm Caching many versions of it?



[quoted text, click to view]

AddThis Social Bookmark Button