• Resolved realmccoyzz

    (@realmccoyzz)


    I think there are two ways to delete the page cache with W3TC.
    ?wp-admin:”Empty All Caches”
    ?command:”wp w3-total-cache flush”

    What should I do if I want to delete only one page cache?

    I’ve tried FTP to delete a single file in a directory(/wp-content/cache/page_enhanced/XXX.com/) directly, is this the right way?
    Does it have any effect?

    Thank you

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

    (@vmarko)

    Hello @realmccoyzz

    Thank you for your question and I am happy to help!
    Yes you can delete the page manually from /wp-content/cache/page_enhanced/ folder.
    There are numerous ways to purge the cache on a single page/post.
    You can do this while logged in, and simply navigate to the page you want to purge, and in the top admin bar however over Performance and click the Purge Current Page.
    This will call w3tc_flush_post( $post_id ). You can always call this manually and you can also call w3tc_flush_url( $url ); to purge a specific URL
    WP-CLI is another way you can achieve this:
    wp w3-total-cache flush <cache> [--post_id=<id>] [--permalink=<post-permalink>]

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘How to delete only a single page cache’ is closed to new replies.