caching - Is it possible to clear the ASP.NET application Cache without resetting the AppDomain? -


I want to reset / clear an item in the cache, but without any reset application or write a particular page for . I.e., a non-programmatic solution Is this possible?

short answer: no.

ASP.NET caches does not have any administrative interface to manage it. You will need to recycle your application pool, or to create a simple page to do

Edit : Inspired by Mick reply, you can get a page like this ( RemoveCache.aspx ):

< Pre> & lt;% @ page language = "c #"% & gt; & Lt; Script runat = "server" & gt; Zero Page_load (Object Sender, EventErgus E) {if (string.isnelloracquity (request.nuclear string ["name"])) {foreach (dictionary entry item in cache) {cache. Remove (item.cttestring ()); Response. Type (item.c.To string () + "deleted & gt;); }} And {cache}. Remove (request .jQuery string ["name"]); }} & Lt; / Script & gt;

If you call RemoveCache.aspx , all your cache will be deleted; RemoveCache.aspx? Name = product is running, just the product cache entry will be removed.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -