You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

Hello,
I noticed that net 4.0 has httpRuntime.Cache, and it is my understanding that this cache is used by the whole application.
Since The beer house uses httpContext.Current.Cache (which is different and i think is just for the users session) Does that mean that if a user views a list of articles (which saves the collection in httpContext.Current.Cache using the beer house caching in the BLL) that the cache is not going to be used by any other user who logs in to view the same article listings. Is The beer house cache user specific only? It is my understanding that you need to use httpRuntime.cache which is application specific to share the same cache dictionary key entries with more than one user.
Is this correct? Thanks for any advice.

Okay, after further research, both httpRuntime.cache and httpContext.Current.Cache point to the same cache that is accessible by anyone in the application which makes sense. I was mislead by someone else's post in another forum. The only other question I have is how AJAX effects httpContext.Current.Cache. If I have an update panel with a gridview and detail view, will there be any problems. Everyone says to use httpRuntime.cache to avoid any null reference problems. I think the beer house website checks for nulls, but I still have no idea what I am in store for if I ajaxify the beer house application. Well, I guess I should stop rambling since It appears that this forum is dead anyways and I am talking to myself now. lol.