READ-ONLY PACKAGE PREVIEW

wp-performance/references/cron.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

WP-Cron performance

Use this file when cron causes spikes or request-time slowness.

Backend-only tools:

  • wp cron test (spawning health)
  • wp cron event list
  • wp cron event run --due-now

Reference:

  • WP-CLI cron command package: https://github.com/wp-cli/cron-command

Fix patterns:

  • De-duplicate scheduled events and reduce frequency where possible.
  • Ensure tasks are idempotent and short.
  • Move heavy work off-request; cron that runs on page load can hurt TTFB.