My website has a small menu in the upper right hand corner that says the user’s First Name and Last Name. I put this piece into a partial view. Since this displays on every page, I obviously think to cache it so I don’t have to get the user’s information everytime a page loads. Should I store this in cache or session data and also where should i create my code to cache this data if its in every page?
Share
As per scenarion, you should definitely use cache. and as you said, you already have menu as partial view