.NETGURU
Caching
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcache' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Jon Ceanfaglione
I have an XML file that is used as a template to derive other XML files
from. So, the process starts by loading an XML file into an XMLDocument,
making some changes, and then persisting to another file on hard disk. My
question is how might I go about using caching to increase the performance
of loading the original XML template that never changes?

Thanks!

Jon

__________________________________________________

The information contained in this communication is intended only for the use
of the recipient named above, and may be legally privileged, confidential
and exempt from disclosure under applicable law. If the reader of this
communication is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication, or any of
its contents, is strictly prohibited. If you have received this
communication in error, please re-send this communication to the sender and
delete the original communication and any copy of it from your computer
system. Thank you.
Reply to this message...
 
    
Rob Howard (VIP)
Load the XML template file in to an XmlDocument, insert the instance of
this object into the Cache and then also make the Cache entry dependent
upon the template file. This way if the file ever changes the
XmlDocument instance is evicted from the Cache.

Along with the template, you might consider using the Cache for the
generated files too; rather than storing them on the disk. You could set
up a time dependency so they are only re-created only 60 minutes (lower
or higher depending on your needs).

Thanks
Rob

-----Original Message-----
From: Jon Ceanfaglione [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, January 03, 2002 2:35 PM
To: aspngcache
Subject: [aspngcache] Caching

I have an XML file that is used as a template to derive other XML files
from. So, the process starts by loading an XML file into an
XMLDocument, making some changes, and then persisting to another file on
hard disk. My question is how might I go about using caching to
increase the performance of loading the original XML template that never
changes? =20
=20
Thanks!
=20
Jon
| [aspngcache] member Click here to reveal e-mail address =3D YOUR ID |
http://www.aspfriends.com/aspfriends/aspngcache.asp =3D JOIN/QUIT=20

__________________________________________________=20

The information contained in this communication is intended only for the
use of the recipient named above, and may be legally privileged,
confidential and exempt from disclosure under applicable law. If the
reader of this communication is not the intended recipient, you are
hereby notified that any dissemination, distribution, or copying of this
communication, or any of its contents, is strictly prohibited. If you
have received this communication in error, please re-send this
communication to the sender and delete the original communication and
any copy of it from your computer system. Thank you.

Reply to this message...
 
    
Dimitris Georgakopoulos
-- Copied from [aspngarchitecture] to [aspngcache] by Marcie Jones <Click here to reveal e-mail address> --

Hi,
I have a few questions related to cache management in ASP.NET.
Here is what I want to do -
I have a website that serves content entered thru' a content management
system and stored in database. I want to cache the content for better
performance. But, I want to update the cached content when the content
management system has a new version of the content available.
In a product like Vignette this could be done by running the clear cache
command.
My question is
1) Is there a way to clear the cache externally?
2) Is there a way to setup the cached page to monitor the underlying
datasource (database) and show new content when available? I know this can
be done with files.

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Reply to this message...
 
    
Rob Howard (VIP)
Hi Dimitris,

There have been several posts to this list that discuss monitoring a
database for changes. I've also got a sample (Beta 2) posted on
www.gotdotnet.com/team/rhoward that discusses database invalidation
using an extended stored procedure.

Hope that helps!
Rob

-----Original Message-----
From: Dimitris Georgakopoulos [mailto:Click here to reveal e-mail address]=20
Sent: Monday, February 11, 2002 10:36 AM
To: aspngcache
Subject: [aspngcache] caching

-- Copied from [aspngarchitecture] to [aspngcache] by Marcie Jones
<Click here to reveal e-mail address> --

Hi,
I have a few questions related to cache management in ASP.NET.
Here is what I want to do -
I have a website that serves content entered thru' a content management=20
system and stored in database. I want to cache the content for better=20
performance. But, I want to update the cached content when the content=20
management system has a new version of the content available.
In a product like Vignette this could be done by running the clear cache

command.
My question is
1) Is there a way to clear the cache externally?
2) Is there a way to setup the cached page to monitor the underlying=20
datasource (database) and show new content when available? I know this
can=20
be done with files.

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

| [aspngcache] member Click here to reveal e-mail address =3D YOUR ID
| http://www.aspfriends.com/aspfriends/aspngcache.asp =3D JOIN/QUIT

Reply to this message...
 
 
System.Xml.XmlDocument




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification