pressable_flush_object_cache
Clear cached data for a specific WordPress site to ensure updated content displays immediately.
Instructions
Flush the object cache for a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- tools/sites.js:117-119 (handler)The handler function for 'pressable_flush_object_cache' which calls the API to flush the cache.
handler: async (args) => { return await api.post(`/sites/${args.id}/flush-object-cache`); } - tools/sites.js:112-116 (schema)The input schema for 'pressable_flush_object_cache' requiring a site ID.
inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, - tools/sites.js:110-120 (registration)The registration object for the 'pressable_flush_object_cache' tool.
name: 'pressable_flush_object_cache', description: 'Flush the object cache for a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/flush-object-cache`); } },