Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does UserManager.FindByIdAsync(User.Identity.GetUserId()) Cache?

When I call UserManager.FindByIdAsync(User.Identity.GetUserId()) does it cache, or make a call to the database every time it's called?

like image 898
Chaddeus Avatar asked Dec 08 '13 07:12

Chaddeus


1 Answers

It does not cache, the underlying store/dbcontext might cache, but the manager itself does no caching, it always calls through to the UserStore.

like image 193
Hao Kung Avatar answered Oct 23 '22 19:10

Hao Kung