Viewing 2 replies - 1 through 2 (of 2 total)
  • Let me be the first person on the entire face of the internet to answer this question for you.

    add_action( 'edit_post', 'w3_flush_page_custom', 10, 1 );
    
    function w3_flush_page_custom( $post_id ) {
       if ( 'custom_post_type' != get_post_type( $post_id ) )
              return;
     $w3_plugin_totalcache->flush_pgcache();
    
    }

    Chris, you literally just saved my life. I was about to jump.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: W3 Total Cache] How to set page cache purge when custom post type is added/edited/updated?’ is closed to new replies.