brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: wp cache flush empties the wordpress object cache, wp cache type names it

WordPress
~/tips/tip-wordpress-object-cache-flush-type

wp cache type

Shows which object cache backend is active and clears it when stale values appear.

When a value changes in the database and the site keeps showing the old one, the object cache is a suspect.

wp cache type
wp cache flush

wp cache type reports which object cache is active, for example the default non-persistent one or a Redis or Memcached drop-in. wp cache flush clears it. With the default cache the data only lives for one request, so flushing changes nothing there, and the call only matters when a persistent backend is installed. A flush on a shared Redis server can empty the keys of other sites too, unless each site has its own prefix or database number.

Further reading: WP-CLI: wp cache flush

More WordPress tips wp user application-password create anna backup-script --porcelain define( 'MEDIA_TRASH', true ); wp cli check-update wp theme delete --all wp media image-size All WordPress tips (85) All topics

Link