Title: Global Cache &amp; WP-CLI Support
Last modified: February 7, 2021

---

# Global Cache & WP-CLI Support

 *  Resolved [bekind](https://wordpress.org/support/users/pkverma99/)
 * (@pkverma99)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/global-cache-wp-cli-support/)
 * Thanks for the wonderful plugin. It performs wonderfully as per specs. I had 
   two queries:
    1. How can I set a global cache TTL? For ex: If I want caching 
   to be done for 60 minutes globally (across the board), how do I specify the same?
   2. Is there WP-CLI support to flush cache? I noticed that there is a command 
   in wp-admin called “Clear Object Cache”. Is there a WP-CLI equivalent to it? 
   The reason I ask is due to Transients. There is WP-CLI support to delete transients.
   It would be really useful if both transients & object cache can be cleared from
   CLI. That would provide a reliable way to flush the cache + transient in a single
   go.
 * Regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/global-cache-wp-cli-support/#post-14016583)
 * You can flush the cache using `wp cache flush` and set a maxttl using the `WP_REDIS_MAXTTL`
   constant.
 *  Thread Starter [bekind](https://wordpress.org/support/users/pkverma99/)
 * (@pkverma99)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/global-cache-wp-cli-support/#post-14016592)
 * Thanks [@tillkruess](https://wordpress.org/support/users/tillkruess/) for the
   quick response. This answers my query. Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Global Cache & WP-CLI Support’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bekind](https://wordpress.org/support/users/pkverma99/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/global-cache-wp-cli-support/#post-14016592)
 * Status: resolved