API referenceSections

Empty the page and object cache

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/sites/{id}/wordpress/accel/purge may answer 202

Empty the page and object cache

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Responses

202 Queued

Content type: application/json

The WordPress page cache (Cache Enabler served by IIS) and object cache (Redis Object Cache on the site's own Garnet), ADR 0119

  • page boolean required

    The site has the page cache now

  • object boolean required

    The site has the object cache now

  • want_page boolean required
  • want_object boolean required
  • working boolean required

    A change or an emptying is running

  • action string required
    Allowed values: "" "change" "purge"
  • state string required
    Allowed values: "" "applied" "rolled_back" "unhealthy" "failed"
  • reason string required

    Why the last change was rolled back or not made

  • error_code string required
  • result WPAccelResult | null required
    • state string required
      Allowed values: "applied" "rolled_back" "unhealthy" "purged"
    • reason string optional
    • page string required
      Allowed values: "on" "off"
    • object string required
      Allowed values: "on" "off"
    • before_ms number optional

      Median time to first byte before, warm

    • after_ms number optional

      Median time to first byte after, warm

    • cold_ms number optional

      First request after the change

    • hit_ms number optional

      A page IIS served from the page cache

    • page_hit boolean optional

      An anonymous visit got X-Zopanel-Cache: HIT

    • signed_in_hit boolean optional

      A signed-in check visit got a cached page (always rolled back)

    • object_keys integer optional

      Keys in the site's cache after the check

  • allowed boolean required

    The plan includes it

  • object_available boolean required

    The server runs Garnet

  • policy string required

    Automatic tuning in effect (ADR 0116)

    Allowed values: "auto" "suggest" "off"
  • suggest boolean required
  • cache_mb integer required
  • cache_id string required

    The site's own cache on the Caches page; empty when none

  • updated_at string (date-time) | null required
Example
{
  "page": true,
  "object": true,
  "want_page": true,
  "want_object": true,
  "working": true,
  "action": "",
  "state": "",
  "reason": "string",
  "error_code": "string",
  "result": {
    "state": "applied",
    "reason": "string",
    "page": "on",
    "object": "on",
    "before_ms": 0,
    "after_ms": 0,
    "cold_ms": 0,
    "hit_ms": 0,
    "page_hit": true,
    "signed_in_hit": true,
    "object_keys": 0
  },
  "allowed": true,
  "object_available": true,
  "policy": "auto",
  "suggest": true,
  "cache_mb": 0,
  "cache_id": "string",
  "updated_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required