API referenceSections

WPAccel

WPAccel object

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
  • 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

Used by

GET/api/v1/tenants/{tid}/sites/{id}/wordpress/accelThe site's WordPress page and object cache
PUT/api/v1/tenants/{tid}/sites/{id}/wordpress/accel 202Turn the page and object cache on or off; the server checks the site before and after and undoes the change if it answers differently or serves a cached page to a signed-in visitor
POST/api/v1/tenants/{tid}/sites/{id}/wordpress/accel/purge 202Empty the page and object cache