WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. scribu
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year ago #

    No worries. :)

  5. scribu
    Member
    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags