• Resolved trulycool

    (@trulycool)


    Working on an inherited site which uses W3 Total Cache; first time w/ this plugin. Have searched the support forum for all wp cli related issues, but can find no answer to this question.

    Using WP-CLI for items like db export/import and search-replace.

    Normally after search-replace, would clear WP cache using:
    wp cache flush

    With W3 Total Cache active, this does not do enough after a URL change to database…

    Have just dug in to learn WP-CLI method for W3 Total Cache:
    wp w3-total-cache flush all

    Is it necessary to clear both caches in this scenario? In other words, with W3 Total Cache installed, does one still need to run ‘wp cache flush’ before running ‘wp w3-total-cache flush all’?

    Thanks for any insight you can provide!

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

    (@vmarko)

    Hello @trulycool

    Thank you for reaching out and I am happy to answer.
    WP-LIC wp w3-total-cache flush all flushes all cache related to W3 Total Cache. That means, Page Cache, OC, DB Cache, Minify, etc.
    So the only thing you need to run is wp w3-total-cache flush all
    Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Using WP-CLI: wp cache flush VS. wp w3-total-cache flush all’ is closed to new replies.