Caching in MVC5 ?
Caching in MVC5 Caching is the most important aspect of high-performance web application.Caching is way of storing data when fetching of data is frequent hence praticlly imprving performnce of application. Advantages of Caching Reducing round trips Reducing Server database round trips Better Performance Lesser Network Traffic For Caching in MVC we use Output Cache Filter. Output Cache Filter This filter will allow us to cache the data for any action method for the specified time, by default the time limit is 60 seconds. This means when any cal is made the data will be cached for next 60 minute after that 60 seconds if there is any call the data will be cached again. Example of using Output Cache Filter [OutputCache(Duration=20, VaryByName="none")] public ActionResult Index() { ViewBag.Message=DateTime.Now.ToString(); return View(); } Here the code will cacche the index page for next 20 seconds. We can check the cache effect by placing the ViewBag.Me...