我试试这段代码
public ActionResult RemoveCache(Guid product_Id)
{
var url = Url.Action("ProductPreview", "Common", new { product_Id = product_Id });
HttpResponse.RemoveOutputCacheItem(url);
return RedirectToAction("Index");
}
删除子操作的输出缓存,但它不起作用。请帮助我,谢谢!