• Resolved jureka

    (@protestkit)


    Hi, is there a wp-cli or other CLI way to purge specific page cache? Via slug, url, whatever, but via CLI so i can use cron to fire it. I am having trouble with my pages not showing “in stock” status after stock change in woocommerce backend and I want to automate purging page cache for specific items after their stock changes to >0. Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @protestkit

    Thank you for reaching out and I am happy to help!
    Yes, you can use the wp-cli command below:

    wp w3-total-cache flush <cache> [--post_id=<id>] [--permalink=<post-permalink>]

    You can check our wiki page for more details about WP-cli

    Thanks!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.