Utilities ​
- Type
- Class
- Namespace
- craft\mcp\capabilities
- Inherits
- craft\mcp\capabilities\Utilities
- Since
- 5.12.0
The everyday tasks of the Caches and Queue Manager utilities.
Public Methods ​
| Method | Description |
|---|---|
| clearCaches() | |
| listCaches() | |
| queueStatus() | |
| releaseAllJobs() | |
| retryAllJobs() | |
| runQueue() |
clearCaches() ​
Arguments ​
$caches(list<string>, null) – Keys from caches.list. Omit to clear every cache.
Returns ​
array{cleared: list<string>}
listCaches() ​
Returns ​
array{caches: list<array{key: string, label: string, info: string|null}>}
queueStatus() ​
Arguments ​
$limit(integer) – The most jobs to list.
Returns ​
array{total: int, jobs: list<array<string,mixed>>}
releaseAllJobs() ​
Returns ​
array{released: true}
retryAllJobs() ​
Returns ​
array{retried: true}
runQueue() ​
Arguments ​
$maxSeconds(integer) – How long to keep starting jobs before returning. Jobs that haven’t run stay queued.
Returns ​
array{ran: int, remaining: int}