Is ASP.NET profile data cached?

Does ASP.NET provider use ASP.NET caching? I mean, if I pull the data from the profile for the user, will he get into the database for each request?

I am looking for settings or any information about this. I thought I read that I would use cookies, but I can not find it now.

Edit:

http://msdn.microsoft.com/en-us/library/aa478953.aspx describes the process as

When SqlProfileProvider.GetPropertyValues ​​is called, aspnet_Profile_GetProperties performs the following actions:

  • It will query the aspnet_Applications table to convert the application name into it into the application identifier.
  • Will query the aspnet_Users table to convert the input username to user id.
  • Query the aspnet_Profile table for the PropertyNames, PropertyValuesString, and PropertyValuesBinary fields for the specified user.
  • Updates the date of the last user activity in the aspnet_Users table with the current date and time.
+3
source share
2 answers

From MSDN

, ASP.NET ProfileCommon, - , ProfileBase. ProfileCommon , , . HttpContext .

, Profile HttpContext . , HttpContext, .

. → HttpRequest (, HttpContext). .

+2

"" , . , . , ( ), .

: , asp.net !.

: " , [http]?". , .

, , , , , . : ASP.NET

+1

Source: https://habr.com/ru/post/1759160/


All Articles