SQL Caching and Entity Framework
问题 I have put together a small ASP.NET MVC 2 site that does some very extensive date mining/table-joins/etc. Using MVC, I have a controller that returns the data in many different forms (tables, images, etc). To save hitting the database frequently I have a dual cache mechanism: For identical parameters to the same action I use the OutputCacheAttribute with VaryByParam = "*" . Assuming some parameter to the action has changed (or another action is called), it is still possible that my "data" has