Support » Plugin: Redis Object Cache » Global Cache & WP-CLI Support

  • Resolved bekind

    (@pkverma99)


    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

    (@tillkruess)

    You can flush the cache using wp cache flush and set a maxttl using the WP_REDIS_MAXTTL constant.

    Thread Starter bekind

    (@pkverma99)

    Thanks @tillkruess for the quick response. This answers my query. Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.