应对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: