Lag when submitting with ping enabled.

A number of users have told me that posting to b2 is sometimes really slow. I suspected it was because b2 pings and, and this post shows that it is a problem with
PHP Traveller documented a way for PHP to execute commands after a browser session/request is completed. It looks like a feature that isn’t very portable across PHP versions so probably not a reasonable solution for a publicly distributed application.

Author: Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Google+ and Twitter.

1 thought on “Lag when submitting with ping enabled.”

  1. My solution to the delay on was to implement my pinging of it in a shell-script that fires when the source for my front-page has changed. Details at but the short version is that a recurring job (run by cron) checks for a change, and if so, that handles pinging The extra level of indirection makes life a lot easier for me.

Leave a Reply