Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS 7.0 Application Pool Shared Between Sites - Is Cache Shared between sites?

I have two sites that are using the same data between their sites except one of the sites is the content management system. Within the content management system when an item is saved, it expires the cache for the particular object.

The other site, I would like to use the cache so I don't have to keep making round trips to the database. If I'm using the same cache keys/object between these sites that are sharing the same app pool, will the site that isn't the CMS in this case reflect it's cache has expired and retrieve the new object?

like image 784
user1704580 Avatar asked Sep 27 '12 20:09

user1704580


People also ask

Can one web application have multiple application pool?

[ Also on InfoWorld: The best open source software of 2021 ] You can have multiple applications residing in an application pool with each of them sharing the worker process. You can have several applications share the same worker process, or, one worker process per application.

What is application pool and where its located in system?

Application pools can contain one or more worker processes. Each worker process represents work being done for a Web site, Web application, or Web service. You can create a Web garden by enabling multiple worker processes to run in a single application pool. In IIS 7 and later, each application pool uses one of two .

Which component is responsible for checking the status of application pool for a given request?

Windows Process Activation Service (WAS) In IIS 7 and later, Windows Process Activation Service (WAS) manages application pool configuration and worker processes instead of the WWW Service. This enables you to use the same configuration and process model for HTTP and non-HTTP sites.

What is application pool in SharePoint?

Application pools define a set of Web applications that share one or more worker processes, they provide a convenient way to administer a set of Web sites and applications and their corresponding worker processes. Web Site = IIS Virtual Server = SharePoint Web Application.


2 Answers

The two applications run in the same application pool, but they do not run in the same memory space. You can think of the two applications as having their own distinct set of memory pointers and thus, one does not affect the other. You can't access another application's variables and cache lifetimes have no effect, even if they are to the same data store.

like image 99
Josh Avatar answered Oct 01 '22 23:10

Josh


No, because cache will be specific to AppDomain, NOT AppPool. See this question to share cache across the applications of same app pool. Shared variable across applications within the same AppPool?

like image 21
Jay Shah Avatar answered Oct 02 '22 00:10

Jay Shah