I'm looking for a way to configure caching only for anonymous users only. The reason I'm looking to do this is when users are logged in and they create content they don't immediately see the content. In our old system (linux/php/mysql) we had it configured to cache only the anonymous users and this wasn't an issue.
Right now we have caching setup in the web.config 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 a varyByCustom="userName" like this post is talking about. But this doesn't solve my problem. It still caches the users login and the same problem exists.