Commands
Hub adds two console commands. Both can also run in the queue.
hub/references
Section titled “hub/references”Indexes the reference tags in the content of all elements again, like the links and images of rich text.
php craft hub/referencesphp craft hub/references --queueRun it after changing content without saving elements, e.g. with Craft’s Find and Replace utility. See references and edits.
| Option | Description |
|---|---|
--queue |
Index in the queue instead. |
hub/snapshots
Section titled “hub/snapshots”Takes the snapshot of the statistics of today, unless there is one already.
php craft hub/snapshotsphp craft hub/snapshots --queue --forceUse it from a cron job for snapshots on a fixed schedule. See snapshots.
| Option | Description |
|---|---|
--force |
Replace the snapshot of today, if there is one. |
--queue |
Take it in the queue instead. |