Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / January 2004

Tip: Looking for answers? Try searching our database.

Is caching the right solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Lewis - 14 Jan 2004 03:51 GMT
I am building a web site that will utilize XML for configuration and
content which will be used on each ASPX page.  I do not want to read
the XML file every time a page is accessed.  I need a way to persist
the XML document in memory so that it can be accessed by each page.  
I am thinking about using a class that each page would call to return
the required information.  I am not sure if caching would be the
solution for this type of scenario.  The XML document almost never
changes and if it did an IIS reset could be preformed.   Am I on the
right track?

-Jim
Jerry III - 14 Jan 2004 04:37 GMT
No, caching is not the solution then, I don't think you'd ever want that
document unloaded. It will be just read when the application starts and it
will stay loaded until the application stops, right? In that case you have
several options - you can create a base page class that will give you access
to this object or you can just simple load it in global.asax when the
application loads (you will have to do this anyways) and then make it
accessible for each request - putting it in each request's HttpContext is
probably the best way to go here.

Jerry

> I am building a web site that will utilize XML for configuration and
> content which will be used on each ASPX page.  I do not want to read
[quoted text clipped - 7 lines]
>
> -Jim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.