From the course: WordPress: WP-CLI

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Flushing cache, transients, and embeds

Flushing cache, transients, and embeds - WordPress Tutorial

From the course: WordPress: WP-CLI

Start my 1-month free trial

Flushing cache, transients, and embeds

- There are some actions you can't perform in the WordPress dashboard without a separate plugin and the right user level. These actions like flushing cache, rewrite rules and transients can help keep your WordPress site running in tip-top shape. Luckily, WPCLI lets you do them quickly and easily. We'll be looking at four WordPress maintenance commands: WP cache, WP transient, WP rewrite and WP embed. First up is WP cache which manages the WP object cache. According to the developer documentation the WordPress object cache is used to save on trips to the database. The object cache stores all of the cache data to memory and makes the cache contents available by using a key which is used to name and later retrieve the cached contents. We can add, delete and update as well as flush the cache through WPCLI. And while we won't get too deep into the trenches of WordPress object cache here, know that there are a number of…

Contents