Flush the WordPress object cache
clear wordpress cache command line | flush redis cache wordpress | changes not showing wordpress | wp-cli | cache | redisCaution: This command changes the system. Understand what it does before you run it.
wp cache flush --path=/var/www/vhosts/example.com/httpdocsFlushes the object cache that WordPress uses through the object-cache.php drop-in, for example with Redis or Memcached. Helps when changed options or content do not appear. Without a persistent object cache, the command has little effect.
Note: Page caches from plugins (for example WP Rocket, LiteSpeed Cache) are not cleared by this. With Redis and a shared database, the command may also flush data belonging to other sites.
Also searched as
- clear wordpress cache command line
- flush redis cache wordpress
- changes not showing wordpress