asp.net mvc 清除視圖緩存,消除緩存方法
public ActionResult SearchCommunityPopulation() { //禁止頁面被緩存 Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Today.AddYears(-2)); return PartialView("Index", 數據源); }
asp.net mvc 清除視圖緩存,消除緩存方法
public ActionResult SearchCommunityPopulation() { //禁止頁面被緩存 Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Today.AddYears(-2)); return PartialView("Index", 數據源); }
一、幾個基本概念 登錄用戶(login user):通過登錄方式進入系統的用戶,強調登錄身份。 當前用戶(current user):執行一個進程或者命令時所使用的用戶身份,強調執行身份。 舉