• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
current user data

#6
(08-22-2019, 02:24 PM)muuucho Wrote:
(08-20-2019, 09:38 AM)includebeer Wrote: 3 Grab data only when you need it, and only the data you need, not everything. Do you really need all that on every request?

You are suggesting that if I don't need a lot of data for the current user, grabbing it on every request is a good option? 
Any idea when it is tipping over for sessions?

I don't know. You didn't say how much data you load and what you're doing with it. The session is probably the best option, but my point is, why load everything just in case you need it? The session may be faster, but it uses memory. So don't load data if you don't need it. If it's only the user profile and permissions, it's fine, you will need it at every request anyway.
Test your translation files with Translation Tester
Reply


Messages In This Thread
current user data - by muuucho - 08-20-2019, 12:28 AM
RE: current user data - by InsiteFX - 08-20-2019, 03:30 AM
RE: current user data - by muuucho - 08-22-2019, 02:22 PM
RE: current user data - by includebeer - 08-20-2019, 09:38 AM
RE: current user data - by muuucho - 08-22-2019, 02:24 PM
RE: current user data - by includebeer - 08-23-2019, 05:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.