Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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`);
    }
  • 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`);
        }
    },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PCWProps/pressable-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server