Support » Plugin: W3 Total Cache » Control w3tc page cache with “wp cache” command

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    Thank you for reaching out.
    You can use wp-cli to manipulate the W3TC cache.
    For example you can use wp w3-total-cache flush all
    Below you can find more information:
    usage:

      wp w3-total-cache cdn_purge
       or: wp w3-total-cache fix_environment [<server>]
       or: wp w3-total-cache flush <cache> [--post_id=<id>] [--permalink=<post-permalink>]
       or: wp w3-total-cache import <filename>
       or: wp w3-total-cache opcache_flush
       or: wp w3-total-cache option <operation> <name> [<value>] [--state] [--master] [--type=<type>] [--delimiter=<delimiter>]
       or: wp w3-total-cache pgcache_cleanup
       or: wp w3-total-cache pgcache_prime [--start=<start>] [--limit=<limit>]
       or: wp w3-total-cache querystring

    I hope this helps!

    Thanks!

    Thread Starter realmccoyzz

    (@realmccoyzz)

    thank you @vmarko

    In other words, does the following command not clear the w3tc page cache?
    https://developer.wordpress.org/cli/commands/cache/

    Is wordpress default cache command irrelevant.

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    I’ve shared with you the wp-cli commands to clear the W3TC cache.
    The, once you are mentioning, clears the wp object cache, as you can see in the description Adds, removes, fetches, and flushes the WP Object Cache object.

    Thanks!

    Thread Starter realmccoyzz

    (@realmccoyzz)

    @vmarko

    I understand.
    Wordpress has an “object cache” function by default.
    https://developer.wordpress.org/reference/classes/wp_object_cache/

    And, W3TC extended the “object cache” and added new functions such as “page cache”.
    By default WordPress doesn’t have a “page cache” function, right?

    • This reply was modified 1 year, 6 months ago by realmccoyzz.
    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @realmccoyzz

    That is correct, yes!

    Thanks!

    Thread Starter realmccoyzz

    (@realmccoyzz)

    thank you so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Control w3tc page cache with “wp cache” command’ is closed to new replies.