In a recent podcast (Polymorphic), I heard that you can cache a user control, not the entire page.
I think my header control, which displays static content and my footer, can benefit from caching.
How can I cache only those controls?
Look here.You can use VaryByParamit VaryByControlin the output cache.
VaryByParam
VaryByControl
I think you can specify OutputCache in the control markup file, as on an ASPX page. And it will be automatically cached automatically.
OutputCache MSDN , , .
, ASP.NET, , .
Source: https://habr.com/ru/post/1696688/More articles:Given that I have a hash of identifier (key) and countries (values) sorted alphabetically, what is the best way to bubble the entry to the top of the stack? - arrayshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1696684/preferred-way-to-implement-visitor-pattern-in-dynamic-languages&usg=ALkJrhjnWPehuIL6QcOW5I4FNgHVT2NcIQC # .Net 3.5 Code for replacing file extension with LINQ - c #Какой лучший способ вставить/обновить/удалить несколько записей в базе данных из приложения? - sqlDotNetNuke / Moodle Integration - dotnetnukeКак определить, соответствует ли данная дата в летнее время для заданного часового пояса в .NET 2.0? - timezoneIs there an easy way to determine what factors contribute to the size of an HTML element? - htmlWhy is my web control invalid? - asp.netLightweight 3D .NET graphics engine (Compact and Full Framework) - c #Definition of members of local groups through C # - c #All Articles