READ-ONLY PACKAGE PREVIEW

wp-wpcli-and-ops/references/cron-and-cache.md

Version 34da134e184e.bb1 · 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

Cron, caches, and rewrites

Use this file when debugging background jobs or “changes not visible”.

Cron

  • List scheduled events:
  • wp cron event list
  • Run a specific event now:
  • wp cron event run <hook>

Cache + rewrite

  • Flush object cache:
  • wp cache flush
  • Flush rewrite rules:
  • wp rewrite flush

Guardrails

  • Don’t “run all cron events” on production without understanding impact.
  • Cache flush can cause load spikes; coordinate if needed.