Performance API endpoints were added in v1.9.0.
/wp-json/wp-manager-pro/v1/performance
All endpoints require X-WP-Nonce header with a wp_rest nonce and the manage_options capability.
GET /performance/overview
Returns a comprehensive performance overview: object cache status, database stats, transient counts, and cache hit ratios.Response
Object cache status.
GET /performance/transients
Returns a paginated list of stored transients.Parameters
Filter by transient name substring.
Page number. Defaults to 1.
Response
Array of transient objects.
Total matching transients.
Total pages.
DELETE /performance/transients
Delete a specific transient by name.Parameters
The transient key (without
_transient_ prefix) to delete.Response
Always
true on success.POST /performance/transients/purge-expired
Deletes all expired transients from the database.Response
Always
true on success.Number of expired transients removed.
POST /performance/cleanup
Runs one or more database cleanup operations.Parameters
Array of cleanup types to run. Accepted values:
revisions— delete all post revisionsauto_drafts— delete auto-draft postsspam_comments— delete spam commentstrash_comments— delete trashed commentsorphaned_postmeta— delete post meta rows with no matching postorphaned_usermeta— delete user meta rows with no matching userorphaned_termmeta— delete term meta rows with no matching termorphaned_commentmeta— delete comment meta rows with no matching comment
Response
Object where each key is a cleanup type and the value is the number of rows deleted.
GET /performance/object-cache
Returns detailed object cache diagnostics and live statistics (Redis or Memcached).Response
Whether object caching is active.
Cache driver (
redis, memcached, external, or default).Whether the connection to the cache server is live.
Cache server host.
Cache server port.
Live cache statistics (driver-specific).
WordPress object cache stats for the current request (groups, hits, misses).
Raw diagnostic text output.
Whether
wp-content/object-cache.php exists.Whether the drop-in is a recognised Redis/Memcached implementation.
POST /performance/object-cache/flush
Flushes all keys from the object cache.Response
Always
true on success.POST /performance/object-cache/drop-in
Installs, updates, or removes the Redis object cache drop-in file atwp-content/object-cache.php.
Parameters
One of:
install— copy the bundled Redis drop-in towp-content/object-cache.phpupdate— replace an existing drop-in with the bundled versionremove— deletewp-content/object-cache.php
Response
Always
true on success.Confirmation message describing the action taken.
