I’m just reading about OutputCache, and I see how you can apply VaryByParam to change the cache based on parameters sent to the view, but I would like to change the cache based on both the parameters and the currently logged in user (using Asp.Nets default membership). I’ve been looking around, but I don’t seem to be able to find a way to get this working.
Any suggestions on what I should try?
Use VaryByCustom. I implemented something like this:
and in Global.asax.cs