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?
[ 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.
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 .
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.
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.
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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With