'How Can I Save Link Which Cached Page (ASP .NET OutputCache)
I use ASP.NET MVC outputcache mechanism. But i need to save link which it's requested. But if a page is cached so i can't save the link because controller's code is bypassed of course. What can i do in this situation i need your advise...
[OutputCache(Duration = int.MaxValue, VaryByCustom = "none", VaryByParam = "")]
public ActionResult MyCachedPage(string myQueryString)
{
//This code runs just one because the page has been cached after one hit
//But i need to save Request.RawUrl to db. I need your advice
_myService.SaveLink(Request.RawUrl)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
