[wp-trac] [WordPress Trac] #48410: `wp_insert_post()` can result in duplicate post data
WordPress Trac
noreply at wordpress.org
Fri Oct 25 13:20:57 UTC 2019
#48410: `wp_insert_post()` can result in duplicate post data
-------------------------------+------------------------------
Reporter: henry.wright | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by henry.wright):
Sure @davidbaumwald
If a website user requests a post by visiting the post permalink and the
post doesn't exist in our WordPress install, we send a request to an
internal system to see if data is available to import. If data is
available the internal system responds with the data and
`wp_insert_post()` is called immediately after checking again if the post
exists
The duplicate issue happens when we are under heavy load and
`wp_insert_post()` is called with the same arguments in a short space of
time
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48410#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list