[wp-hackers] Questions on execute-pings.php...
skeltoac at gmail.com
Mon Apr 24 23:58:54 GMT 2006
On 4/24/06, David Chait <davebytes at comcast.net> wrote:
> I would assume/presume the person who added that code had done testing --
> and maybe had copied the approach from another project, not just making it
> up. ;)
No, I made it up.
Actually somebody had the bright idea of an iframe so that the browser
would be the middleman. This worked much of the time but failed when
the browser's next page wasn't an admin page, as can happen when
publishing from other tools than the usual Write Post screen, or
posting via XMLRPC.
My solution to that was to spawn the new thread via HTTP request from
the server itself. (Thus was born Argyle.) Now a post from an XMLRPC
client would spawn the pinger without relying on the user to visit the
dashboard, triggering the pinger via iframe. This worked on almost all
server configs. Certain CGI setups didn't work this way due to a PHP
bug so we forked the code for them: if CGI, use iframe instead of
This was all done in the interest of reducing the apparent delay when
posting, which was caused by waiting for so many remote servers to
respond to the pings.
Now some other folks have had their fingers in the code and I don't
know what it's doing. I hope the history lesson has some value anyway.
More information about the wp-hackers