473,395 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

.NET Caching and App Pools

34
Hi,

As far as .NET caching goes on IIS, if 2 .NET websites are in the same app pool can they access the same cache items (Using HttpContext.Current.Cache) ? Or is this cache collection always seperate for each .NET application?

Cheers
Mar 17 '08 #1
7 5863
kenobewan
4,871 Expert 4TB
Here is an article that may help:
IIS and ASP.NET: The Application Pool
Mar 18 '08 #2
Murdz
34
Thanks, I did read that but it didn't fully delve into what I was after. I have learnt, though, that this is not possible.

Is there a way, then, of two different projects being able to manipulate the Cache items of one another? For example, say there is a .NET website and a .NET admin section for that website. The dream is to have the 2 as seperate projects so that a deploy of the website doesn't mean a deploy of the admin, and vice versa. The problem, however, is that the admin system needs to update / remove Cache items that the website accesses... Is there any way to do this? Or must they both exist within the same project (application) in order to modify the Cache for each other?
Mar 19 '08 #3
kenobewan
4,871 Expert 4TB
Thanks, I did read that but it didn't fully delve into what I was after. I have learnt, though, that this is not possible.

Is there a way, then, of two different projects being able to manipulate the Cache items of one another? For example, say there is a .NET website and a .NET admin section for that website. The dream is to have the 2 as seperate projects so that a deploy of the website doesn't mean a deploy of the admin, and vice versa. The problem, however, is that the admin system needs to update / remove Cache items that the website accesses... Is there any way to do this? Or must they both exist within the same project (application) in order to modify the Cache for each other?
Easier to stick with the one project and probably more secure.
Mar 19 '08 #4
Murdz
34
Double post, see below.
Mar 24 '08 #5
Murdz
34
Cheers.

The only other option that I can really think about, aside from reading some DB value (as the whole point of caching is to avoid DB calls) is to have a CacheDependency on a file and simply update that file through the admin system; thus the cache for the website will expire.
Mar 24 '08 #6
kenobewan
4,871 Expert 4TB
Another way may be using a class library. If the classes or configs are shared, then you may be able to control caching across two applications. An even easier way may be to reference a client side file in both apps that does this job. Never used this approach, so just a suggestion. HTH.
Mar 24 '08 #7
Murdz
34
Interesting.

Cheers kenobewan.
Mar 29 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: David Sworder | last post by:
Hi, I'm developing an application that will support several thousand simultaneous connections on the server-side. I'm trying to maximize throughput. The client (WinForms) and server communicate...
1
by: dreamlinetheater | last post by:
I have several sites running on Windows 2003 Server in true IIS 6 mode with Application pools. One site has about 9 Virtual Directories in it that are all configured to run as applications. Each...
1
by: Gordon Smith | last post by:
I plan to install multiple Web applications installed on a single Web server. Should I create each Web site in its own Application pool? I'd appreciate any recommendations, guidelines or links to...
1
by: dm1608 | last post by:
Hi, all. I have a question regarding ASP.NET and Application Pools as defined within IIS Manager. I have a bunch of in-house ASP.NET applications that I frequently have to install on my IIS 6...
0
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
4
by: Diffident | last post by:
Hello All, IIS 6.0 - I have an application which resides in its own application pool. Does anyone know if we can create multiple application pools for the same application? If we can create...
2
by: Cameron.39 | last post by:
Hello, I am currently running into a bug where I have two applications on the same machine, using the same Identity, for the same web site. One application (App1) accesses the other application...
1
by: richard.hallgren | last post by:
Hi, I have some questions concerning thread pools. I've marked the questions by number in the text. First I'd like to know when which thread pools an application uses. I know ASP.NET uses the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.