Skip to content

Cookbook › WP-CLI

Clear the cache with WP-CLI

WP-CLI1 minuteChangesTested 15 Oct 2026
Paste into ChatGPT or ClaudeI just changed my menu and the site still shows the old one. Use WP-CLI to clear every cache you can.

Changes your site. Standard asks you first in wp-admin; Trusted does it directly.

  1. Your assistant runs wp cache flush for WordPress’s object cache.
  2. It clears your cache plugin if it’s LiteSpeed Cache, SiteGround Optimizer, WP Super Cache, W3 Total Cache or Breeze, and Elementor’s CSS with wp elementor flush-css.
  3. It tells you what it cleared.
  • “Flush the permalinks.”
  • “Which scheduled tasks are due to run today?”
  • A CDN or your host’s own cache may need clearing in their dashboard.