I'm currently wondering how I should deal with user data and thought I'd get some opinions here.
The situation:
Every user on my site has lots of data (and therefore relationships) that are loaded with every request. For example: a title (many to many), a name color (many to many), roles and rights (many to many), profile picture and notifications. All are always displayed in the UI. This currently results in 9 database queries each time a page is accessed by logged-in users. With a traffic of around 2,000 to 3,000 concurrent users, this is clearly too much in my opinion.
I am currently considering whether to cache the auth()->user(). From what I've read, that's not the best idea either.