[OutputCache(Duration = 3600, VaryByParam = "startindex;endindex")]
public ActionResult GetTop100Student(int startindex, int endindex)
{
artistlist = new List<Artist>();
artistlist = statisticsmanager.GetTopStudent(id, startindex, endindex);
ViewData["studentlist"] = studentlist;
return view();
}
我通过jquery / json调用该函数。
XHR完成加载:“http://EEE.COM/Top100/GetTop100Student/?startindex=1&endindex=10”。的jquery-1.4.4.min.js:145
XHR完成加载:“http://EEE.COM/Top100/GetTop100Student/?startindex=11&endindex=20”。的jquery-1.4.4.min.js:145
XHR完成加载:“http://EEE.COM/Top100/GetTop100Student/?startindex=21&endindex=30”。的jquery-1.4.4.min.js:145
XHR完成加载:“http://EEE.COM/Top100/GetTop100Student/?startindex=31&endindex=40”。的jquery-1.4.4.min.js:145
XHR完成加载:“http://EEE.COM/Top100/GetTop100Student/?startindex=41&endindex=50”。的jquery-1.4.4.min.js:145
我在输出缓存中进行每次调用。我的问题是:如何删除此输出缓存。请任何人解决这种解决方案。谢谢提前
答案 0 :(得分:1)
请参阅ServerFault:
https://serverfault.com/questions/176943/will-an-iis-reset-force-cached-items-to-be-resent
看起来IISReset会这样做,否则请尝试循环站点的应用程序池。