[wp-hackers] When a ping is sent ?

Robert Deaton false.hopes at gmail.com
Mon Dec 19 20:33:53 GMT 2005


On 12/20/05, Jeff Minard <jeff at jrm.cc> wrote:
> Andy Skelton wrote:
> Why not just hook into the shutdown function? That option operates after
> sending all client data, would have no impact on either user, and
> wouldn't require spawning another thread/database connection/etc.
>
>   - http://us3.php.net/manual/en/function.register-shutdown-function.php

Just to further elaborate on this, even though it is called after all
the main script processes, it does not run after a request. This comes
into play especially in environments that use some sort of output
compression in the webserver as opposed to PHP. It is true that the
buffer is flushed and output is sent, but PHP doesn't officially
terminate the request to the webserver, which means that a buffering
webserver that could be doing something like compression still needs
to wait for this function to execute. On the other hand, when you
don't have output compression, this works, but we can't reply on that
within WordPress, as some people will be continually screwed over.

>
> In fact, you can use the wordpress API to hook into the "shutdown" hook
> which will do the same thing.
>
>
>
> Regardless -- didn't this all get moved to the admin footer? Launched in
> an iframe? I was under the impression that 2.0 put a "toping" postmeta
> on a post at post time, and then the admin footer would list all the
> "toping" posts and deal with them.
>
> Jeff
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


--
--Robert Deaton
http://somethingunpredictable.com


More information about the wp-hackers mailing list