c# - Is clearance of output caching clear all caching? -


i have implemented output caching in project on 2 action methods named "xyz" & "abc". please note controller different both of methods.

if clear output caching of action "xyz" on event, clear caching of action method too? or need clear caching second method well? clearing caching using below code:

 var requestcontext = new system.web.routing.requestcontext(     new httpcontextwrapper(system.web.httpcontext.current),     new system.web.routing.routedata());      var url = new urlhelper(requestcontext);     var urltoremove = url.action("xyz", "controller");     httpresponse.removeoutputcacheitem(urltoremove); 

please advice.


Comments