• Resolved jetcrusher

    (@jetcrusher)


    I’m trying to use cli to flush the homepage cache to refresh a widget. The homepage has post id of 6, the following command is not refreshing the page.

    wp w3-total-cache flush post –post_id=6

    (its a double dash in front of post_id, response is “Success…”)

    What am I missing? If I use the purge link from Posts section it does it correctly, but not when I try to do it via cli.

    Plugin version 2.6.1

    • This topic was modified 10 months, 1 week ago by jetcrusher.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jetcrusher

    (@jetcrusher)

    I also tried (homepage is what I’m attempting to purge)

    wp w3-total-cache flush post –permalink=/

    Response: “Success: The page is flushed from cache successfully.”

    same issue, nothing is purged. The page is not updated and response headers still show old date for last-modified.

    • This reply was modified 10 months, 1 week ago by jetcrusher.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jetcrusher

    Thank you for reaching out and I am happy to help!
    Can you please share the website URL?
    Have you tried wp w3-total-cache flush all and see if the cache is cleard?

    Thanks!

    Thread Starter jetcrusher

    (@jetcrusher)

    “wp w3-total-cache flush all”

    Does nothing, the response is success but nothing is cleared. The only way I can clear cache is from the WP Admin side, cli commands have no effect.

    Thread Starter jetcrusher

    (@jetcrusher)

    A bit more debugging, under wp-content/cache/page_enhanced/domain.com

    If I use the admin side purge cache the _index_slash_ssl.html file gets renamed to _index_slash_ssl.html_old until the home page is loaded again and a new _index_slash_ssl.html is created.

    This does not happen when using cli command.

    I can delete the cache files directly but its a hacky way to do this.

    • This reply was modified 10 months ago by jetcrusher.
    • This reply was modified 10 months ago by jetcrusher.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jetcrusher

    I’ve tested this and the cli flushing works as expected.
    Can you please share the website URL? Can you please also confirm that you are calling those commands in the correct place?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘cli flush post not working’ is closed to new replies.