c# - MVC: Add output cache for all actions -
c# - MVC: Add output cache for all actions -
one of mvc project close end. trying optimize project output cache.
however, found there many controllers more actions. not think add together output cache attribute each action idea.
is there solution add together output cache each action 1 time?
add global filters.
filters.add(new outputcacheattribute { nostore = true, duration = 0, varybyparam = "*" });
you can in filterconfig.cs
file in app_start
folder.
c# asp.net asp.net-mvc asp.net-mvc-4
Comments
Post a Comment