WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Page cache not cleared when status transitioned (3 posts)

  1. Simon Wheatley
    Code for the People
    Posted 3 years ago #

    Hi,

    I noticed that the page caches weren't getting cleared when another plugin used wp_transition_post_status to unpublish a post. I think this would be solved by hooking your $PgCache->on_post_change() method, or similar, on the WordPress transition_post_status action?

    Thanks for the great plugin!

    Best regards,

    Simon

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

  2. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    You can use: w3tc_pgcache_flush_post()

  3. Simon Wheatley
    Code for the People
    Posted 3 years ago #

    Got it. That's what I'm doing now. Thanks for the reply, Frederick.

    Merry Christmas!

    Cheers,

    Simon

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic