Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm having this weird issue, if i install my plugin and the official Facebook plugin the call to wp_update_post() becomes really slow. I've done some benchmark and it goes up to almost two seconds. If i disable Facebook plugins it reverts back to normal. Anyone knows what should i do to avoid this?

share|improve this question
add comment

1 Answer

This is beacuse facebook plugins does some really intensive checks on every save_post and this slows down calls to wp_update_post and wp_save_post to a crawl ( about 2 seconds for each call ). If you want you can remove them

remove_action( 'save_post', 'fb_add_page_mention_box_save' );
remove_action( 'save_post', 'fb_add_friend_mention_box_save' );

The crazy thing is that facebook does a login for in both of these calls: 0.6 second each, they never cache anything!

share|improve this answer
add comment

Your Answer

 
discard

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.