views:

73

answers:

2

I have a website setup like this:

/Web --this is the client facing site
/Web/Admin --this is the backend system and is setup as a Virtual Application

I'm using HttpRuntime.Cache for caching calls to the database. What I want to be able to do is clear something that is cached on the /Web site from the /Web/Admin site. It appears though that HttpRuntime.Cache is a single instance per application. Anyway around this without using a distributed caching system.

+1  A: 

I have done this with an http handler on the main site. Call the handler from your admin site with some parameter(s) to tell it what to remove from cache, then the handler cann access the cache and remove the item.

Ray
Setting this up as a service might be a little cleaner, and provide better mechanisms for security and authentication.
Cylon Cat
A: 

An alternative might be Windows AppFabric.

XIII
Problem is that I need a non-distributed caching system. It's a hosted environment, so installing a distributed cache is not an option.
Micah