473,842 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Caching and App Pools

34 New Member
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.Cur rent.Cache) ? Or is this cache collection always seperate for each .NET application?

Cheers
Mar 17 '08 #1
7 5894
kenobewan
4,871 Recognized Expert Specialist
Here is an article that may help:
IIS and ASP.NET: The Application Pool
Mar 18 '08 #2
Murdz
34 New Member
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 Recognized Expert Specialist
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 New Member
Double post, see below.
Mar 24 '08 #5
Murdz
34 New Member
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 Recognized Expert Specialist
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 New Member
Interesting.

Cheers kenobewan.
Mar 29 '08 #8

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

Similar topics

7
2879
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 via a socket connection (no remoting, no ASP.NET). The client sends a message to the server that contains some instructions and the server responds in an asynchronous fashion. In other words, the client doesn't block while waiting for the...
1
2380
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 of these have a dedicated application pool with all different memory settings in the Memory Recycling area. The applications are all .Net based applications. They are all pretty frequently used apps and as a rule of thumb, we assigned more...
1
1381
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 articles.
1
1290
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 server -- approx. 40 total. We have a custom application pool that we must assign these ASP.NET applications to to recycle memory, etc. Unfortuantely, every time I install a new ASP.NET, it uninstalls the original and re-installs. This requires...
0
1356
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), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable suggestions. Is it safe to turn off filesystem caching on every tablespaceon the server?? or can we...
5
7863
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), after some investgation i found out that most of it being consumed by filesystem caching... thanks to Liam and Phil Sherman for their valuable suggestions. Is it safe to turn off filesystem caching on every tablespaceon the server(i.e. DIO) ??...
4
3780
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 multiple application pools to serve a single application's request will it improve the performance? Thanks for your suggestions!!
2
1261
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 (App2). The issue is with the application pool. The objective is for each application to have its own application pool. However, when the applications are set to different application pools, a 400 error occurs:
1
2231
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 CLR common thread pool. (1a) Is there a way around this? (1b) Can ASP.NET application have it's own pool? Is there a setting in IIS for this? (2) If ASP:NET application uses the CLR common pool is this also true for Web Services running on the...
0
9870
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9715
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10610
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7035
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5696
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5884
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4499
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4088
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3142
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.