READ-ONLY PACKAGE PREVIEW

wp-performance/references/http-api.md

Version 34da134e184e.bb2 · GPL-2.0-or-later. This preview displays packaged text and does not execute code. Treat the contents as untrusted instructions.

← Return to resource and package checksum

HTTP API (remote requests)

Use this file when profiling shows slow external requests (wp_remote_get, etc.).

Fix patterns:

  • Add timeouts and fail-fast behavior.
  • Cache responses where appropriate (transients/object cache).
  • Batch requests and avoid calling remote APIs on every page load.
  • Move heavy remote work to async (cron/queue) where possible.

Tooling:

  • Query Monitor can report HTTP API calls (including timing) via REST envelope info.