Skip to content

Commit 8efe544

Browse files
committed
typos
1 parent 3d93a24 commit 8efe544

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

application/configuration/multitenancy.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,22 @@ Use [cache](../../application/reference/cli.md#cache-tenants-data) to regenerate
266266
app/bin/tenants -C cache
267267
```
268268

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+
269285
## Running jobs worker
270286

271287
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.

application/reference/cli.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ app/bin/cli -C stats --format json
148148

149149
### Stats rebuild
150150

151-
The `stats-rebuild` command rebuilds the Chevereto application stats.
151+
The `stats-rebuild` command rebuilds the Chevereto application stats. It truncates the stats table and repopulates it from scratch.
152152

153153
```sh
154154
app/bin/cli -C stats-rebuild
@@ -415,6 +415,19 @@ app/bin/tenants -C plan:delete --id 1
415415
| ------ | -------------- |
416416
| id | Tenant plan ID |
417417

418+
### Tenants stats refresh
419+
420+
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+
418431
### Tenants jobs worker
419432

420433
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

Comments
 (0)