Forums

W3 Total Cache
[resolved] Patch for wp-cli command (5 posts)

  1. scribu
    Member
    Posted 5 months ago #

    Here's a patch that implements a wp-cli command, with which you can flush various caches from the command line.

    Example usage:

    $ wp total-cache flush db

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 5 months ago #

    Thanks! Took a look at this patch. As one might expect after the announcement, there a number of commands that are supported in the private master or the next public release expected this month, e.g.:

    flush db
    flush database
    flush minify
    flush object
    flush post <id>
    flush post <permalink>
    flush post
    querystring (updates the mediasquerystring)
    cdn_purge <array> (consists of paths relative to wphome url)
    pgcache_cleanup

    More will be added soon.

  3. scribu
    Member
    Posted 5 months ago #

    I had read about that, but forgot about it in the mean time. Disregard my patch then.

    Looking forward to the next release.

  4. Frederick Townes
    Member
    Plugin Author

    Posted 5 months ago #

    No worries. :)

  5. scribu
    Member
    Posted 5 months ago #

    For legal reasons, I have to mention that most of the code in the patch was actually written by andreascreten, with help from johnpbloch.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags