Support » Plugin: W3 Total Cache » Flush cache from sh script

  • Resolved ELAN42///

    (@nokao)


    Hello,
    The server of our company has a custom sh script which every night generates and imports into a WP website a set of records (posts), by calling the necessary trigger/processing URLs of a few plugins (WP All Import + Relevanssi).

    At the end of the import we need to purge all caches, but right now we’re doing it “by hand”, so the question is if there’s any kind of trigger link for W3 Total Cache too that we could use from our script.

    Thank you for your time!

    • This topic was modified 1 year, 4 months ago by ELAN42///.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    If you install WP-CLI, we provide:
    wp w3-total-cache flush <cache> [--post_id=<id>] [--permalink=<post-permalink>]

    If you want to clear all caches, you just use:
    wp w3-total-cache flush all

    Thanks a lot: we installed WP-CLI and that solved the issue.

    bgdstr

    (@bogdanstratulat)

    i am happy that we could assist you. However, if you are kind, please take 2 minutes and rate our plugin. Every review that we reciive is a great help for our entire team, which is always putting the best efforts in all our releases.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Flush cache from sh script’ is closed to new replies.