WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suddenly one of my test sites became absolutely unresponsive after testing with wp_insert_post( $my_post )

I Installed the black box plugin and checked what queries are slowing it down

I found one that takes 10 seconds to load. I deactivated all plugins that were activated recently but it's still slowing everything down. Also noticed that PHP crashed a couple times due to this. Any ideas what could be causing such a slowdown?

I REMOVED PARTS due to the length (end: WHERE option_name = 'rewrite_rules';)

UPDATE `wp_options` SET `option_value` =
WHERE `option_name` = 'rewrite_rules';
share|improve this question
it seems to be a known issue with "attachments" wordpress.org/support/topic/… - I'll check if I can find a fix, any input appreciated – mashup Nov 17 '13 at 17:37

The solution was to change the permalink structure from




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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.