mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Add paragraph about queue tenancy bootstrapper's $forceRefresh (#218)
This commit is contained in:
parent
fe84b4186f
commit
5ab19201c1
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ public function boot()
|
||||||
|
|
||||||
This bootstrapper adds the current tenant's ID to the queued job payloads, and initializes tenancy based on this ID when jobs are being processed.
|
This bootstrapper adds the current tenant's ID to the queued job payloads, and initializes tenancy based on this ID when jobs are being processed.
|
||||||
|
|
||||||
|
The bootstrapper has a static `$forceRefresh` property which is `false` by default. Setting the property to `true` will make tenancy re-initialize for each queued job. This is useful when you're changing the tenant's state (e.g. properties in the `data` column) and want the next job to initialize tenancy again with the new data. Features like the Tenant Config are only executed when tenancy is initialized, so the re-initialization is needed in some cases.
|
||||||
|
|
||||||
You can read more about this on the *Queues* page:
|
You can read more about this on the *Queues* page:
|
||||||
|
|
||||||
[Queues]({{ $page->link('queues') }})
|
[Queues]({{ $page->link('queues') }})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue