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
I have two domains, they are admin.site.com.br and user.site.com.br.
I need to get from cache the variable user-is-online concatenated with auth user id. But, this just works for the first domain, not for the second when use cache()->get('user-is-online' . auth()->user()->id). Any solution?
The text was updated successfully, but these errors were encountered:
I need some more info for trying to help you, but I don't think that the problem is the concatenation.
Which version of the package do you use? Which driver do you use for the cache?
I will try to do some test asap... however your problem sounds a bit strange because using the standard file driver, the cache files should be completely separated and it always worked for me.
You should have in your folder structure storage/admin.site.com.br/framework/cache and storage/user.site.com.br/framework/cache
Can you check you have this structure?
Second question: could you share more about the code where you are retrieving the cache variable? Are you using it in a job/commnad or via web?
I have two domains, they are admin.site.com.br and user.site.com.br.
I need to get from cache the variable user-is-online concatenated with auth user id. But, this just works for the first domain, not for the second when use cache()->get('user-is-online' . auth()->user()->id). Any solution?
The text was updated successfully, but these errors were encountered: