I am looking for a way to configure caching only for anonymous users. The reason I'm trying to do this is when users register and create content that they don’t immediately see in the content. In our old system (linux / php / mysql), we configured caching only for anonymous users, and this was not a problem.
Right now we have a cache setting in the web.config file like this
<caching>
<outputCacheSettings>
<outputCacheProfiles>
<add name="High" duration="60" varyByParam="*" enabled="true"/>
<add name="Medium" duration="30" varyByParam="*" enabled="true"/>
<add name="Low" duration="10" varyByParam="*" enabled="true"/>
</outputCacheProfiles>
</outputCacheSettings>
</caching>
I know that I can add the variable ByCustom = "userName", for example, this post . But that does not solve my problem. It still caches user login and the same problem exists.
source
share