WP Options Query “Rewrite Rules” Taking 10 Seconds After Testing wp_insert_post( )

The solution was to change the permalink structure from

/%postname%/%post_id%

to:

/%post_id%/%postname%/

This magically fixed it – possibly WordPress queries are not so efficient the other way around or I ran into a bug with a plugin. Anyway, it’s blazing fast again, both backend and frontend