10分遅延の回避策を試みています

Hmm、これがなぜ機能するのか分かりません。なぜなら

そしてあなたのプラグインは

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 );

アクションに渡される (Wordpress) $post_id と、トランジェントキーとして機能する (Discourse) topic_id を混同していませんか?

あなたのプラグインは次のようになっていると予想していました。

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 );

逆に、これが機能すると言っていますか? :thinking: