![wp_insert_post() sometimes takes awhile when creating pages programmatically. I'm guessing the function checks existing pages for collision on the slug? (Site has 700 pages). I'm looking to brainstorm ideas to speed it wp_insert_post() sometimes takes awhile when creating pages programmatically. I'm guessing the function checks existing pages for collision on the slug? (Site has 700 pages). I'm looking to brainstorm ideas to speed it](https://preview.redd.it/lv7td15rqnv21.png?auto=webp&s=f38f62316132e9e3e8cb06e7cbe0fbeb1447e172)
wp_insert_post() sometimes takes awhile when creating pages programmatically. I'm guessing the function checks existing pages for collision on the slug? (Site has 700 pages). I'm looking to brainstorm ideas to speed it
wp_insert_post not fired with current version of an Order on save · Issue #18007 · woocommerce/woocommerce · GitHub
![transition_post_status" action creating two post with wp_insert_post - WordPress Development Stack Exchange transition_post_status" action creating two post with wp_insert_post - WordPress Development Stack Exchange](https://i.stack.imgur.com/7kC1U.png)
transition_post_status" action creating two post with wp_insert_post - WordPress Development Stack Exchange
![wp query - After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel - WordPress Development Stack Exchange wp query - After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel - WordPress Development Stack Exchange](https://i.stack.imgur.com/Qtjdv.png)