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'm using tenant_id for scopes in the middleware (Laravel application).
Currently, when refreshing the cache using Bouncer::refresh(), it refreshes for the users in the current tenant scope only.
To refresh for all the users in each tenant, I have to iterate it something like below:
foreach $tenants as $tenant) {
Bouncer::scope()->to($tenant->id);
Bouncer::refresh();
}
Is there any way to refresh the cache for all users regardless of the scope?
Or is there any chance to configure a default time for the cache such as 24hrs?
The text was updated successfully, but these errors were encountered:
77media-creations
changed the title
Is there any way to refresh() cache for all scoped tenants
Is there any way to refresh() cache for all tenants
Aug 3, 2024
I'm using
tenant_id
for scopes in the middleware (Laravel application).Currently, when refreshing the cache using
Bouncer::refresh()
, it refreshes for the users in the current tenant scope only.To refresh for all the users in each tenant, I have to iterate it something like below:
Is there any way to refresh the cache for all users regardless of the scope?
Or is there any chance to configure a default time for the cache such as 24hrs?
The text was updated successfully, but these errors were encountered: