alleyinteractive / searchpress

Elasticsearch integration for WordPress.
84 stars 12 forks source link

Async Indexing: Remove call to delete post if unindexable because race condition #140

Closed mslinnea closed 1 year ago

mslinnea commented 3 years ago

In this branch, the delete post call is handled async. We saw an issue where a post would be flagged as unindexable when in auto-draft status. This post would be added to the delete queue, but the delete queue wouldn't complete before the post was published, so it ended up deleting published posts.