wp_cache_flush
Clears the WordPress object cache for a specified site via WP-CLI, improving site performance by forcing fresh content delivery.
Instructions
Wis de WordPress-objectcache van één toegestane site via WP-CLI.
site_path moet in wp_allowed_sites staan en een wp-config.php
bevatten. Deze muterende tool voert wp cache flush uit, standaard
als www-data; met as_www_data=False als root met --allow-root.
De timeout is 60 seconden en stdout, stderr en exitcode worden geretourneerd.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_path": "<site_path>"
},
"name": "wp_cache_flush"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_path | Yes | ||
| as_www_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||