You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to use lada to cache the logged in user to avoid reading the database on every request? As lada doesn't support it out of the box, I am using this plugin https://github.com/hobbiot/cacheable-auth-user but I was wondering if I can use lada for this as well.
The text was updated successfully, but these errors were encountered:
Lada Cache does per default cache all models, including the user model. As long as you are including the trait in all your models I don't see a reason why the user model shouldn't not be cached. Maybe you could check if the Auth Facade does internally use Eloquent, otherwise it won't work at all.
Would it be possible to use lada to cache the logged in user to avoid reading the database on every request? As lada doesn't support it out of the box, I am using this plugin https://github.com/hobbiot/cacheable-auth-user but I was wondering if I can use lada for this as well.
The text was updated successfully, but these errors were encountered: