Problem . I have an ASP.NET website and I do not believe that my code correctly gets OutputCached. I use IIS7 performance counters to show me hits or skip a second.
I have a simple ASP.NET MVC website. I use the built-in magic of ASP.NET output cache.
Here is a sample code: -
[AcceptVerbs(HttpVerbs.Get)]
[ApiAuthorize]
[OutputCache(CacheProfile = "HomeController_Foo")]
public ActionResult Foo(string name, byte? alpha, byte? beta)
{
}
therefore this means that each url request may look like this: -
Now notice how I got OutputCache referencing the configuration file? here it is...
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="HomeController_Foo" duration="3600" varyByParam="key;name;alpha;beta"/>
</outputCacheProfiles>
</outputCacheSettings>
</caching>
Nothing complicated ...
! , IIS7, , / / 100% , . 0/.
- , . , ? . , , . , BOUND . IIS .
.
, ....
... "hello + world" , IIS .
, ? - , , ? , , .