Versuch, die 10-minütige Verzögerung zu umgehen

Hmm, ich bin verwirrt, warum das funktioniert, denn

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

Vermischen Sie nicht die (Wordpress) $post_ids, die an die Aktion übergeben werden, mit der (Discourse) topic_id, die als Transient-Schlüssel dient?

Ich würde erwarten, dass Ihr Plugin so aussieht

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

Andererseits sagen Sie, dass dies funktioniert? :thinking: