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
Copy file name to clipboardExpand all lines: application/configuration/multitenancy.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,22 @@ Use [cache](../../application/reference/cli.md#cache-tenants-data) to regenerate
266
266
app/bin/tenants -C cache
267
267
```
268
268
269
+
## Tenants stats refresh
270
+
271
+
Use [stats:refresh](../../application/reference/cli.md#tenants-stats-refresh) to recalculate and update the tenants stats table.
272
+
273
+
To refresh stats for all tenants:
274
+
275
+
```sh
276
+
app/bin/tenants -C stats:refresh
277
+
```
278
+
279
+
To refresh stats for a specific tenant:
280
+
281
+
```sh
282
+
app/bin/tenants -C stats:refresh --id 1
283
+
```
284
+
269
285
## Running jobs worker
270
286
271
287
Use [jobs:worker](../../application/reference/cli.md#tenants-jobs-worker) to run the jobs worker in multi-tenant mode. This long-running process handles background tasks for tenants websites, it also refreshes the tenants stats table.
The `stats:refresh` command refreshes the tenants stats table in the Chevereto infrastructure.
421
+
422
+
```sh
423
+
app/bin/tenants -C stats:refresh # all tenants
424
+
app/bin/tenants -C stats:refresh --id 1
425
+
```
426
+
427
+
| Option | Description |
428
+
| ------ | -------------------- |
429
+
| id | (optional) Tenant id |
430
+
418
431
### Tenants jobs worker
419
432
420
433
The `jobs:worker` command starts the jobs worker process for tenants in the Chevereto infrastructure. This process is required for carrying out background tasks for tenants websites and to refresh the tenants stats table.
0 commit comments