Attempting to work around the 10 minute delay

Hmm I’m confused why this works, because

And your plugin

add_action( 'wpdc_after_webhook_post_update', function( $topic_ids ) {
    foreach ( (array)$topic_ids as $topic_id ) {
        delete_transient( 'wpdc_comment_html_' . $topic_id );
    }
}, 11 );

Aren’t you mixing up the (Wordpress) $post_ids passed to the action with the (Discourse) topic_id that serves as the transient key ?

I would expect your plugin to look like this

add_action( 'wpdc_after_webhook_post_update', function( $post_ids) {
    foreach ( (array)$post_ids as $post_id ) {
        $topic_id = get_post_meta( $post_id, 'discourse_topic_id', true );
        delete_transient( 'wpdc_comment_html_' . $topic_id );
    }
}, 11 );

OTOH you’re saying this works? :thinking: