[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調用函數。由MVC清除輸出緩存
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
我在輸出緩存中進行每次調用。我的問題是:如何刪除此輸出緩存。請任何人解決這種解決方案。由於提前