Ticket #1644 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

A new attempt at fixing ping delays

Reported by: ringmaster Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: normal Keywords:
Cc:

Description

I've written some code that removes the ping functionality from the wp_insert_post(), instead adding some data to the postmeta.

When the next admin page loads (presumably after the post is saved), some new code in the header detects un-pinged, un-trackbacked, and un-enclosed posts. If there are any, an additional <link> is added to the header that references a "stylesheet" that actually does pinging on any posts that still need it.

Patch and new file forthcoming.

Please test.

Attachments

execute-pings.php (1.4 kB) - added by ringmaster on 09/01/05 21:34:22.
New file to handle pinging exclusively as a "stylesheet"
ping.3.diff (2.1 kB) - added by ringmaster on 09/01/05 22:40:01.
Well, I'm dumb. Use THIS file, same /wp-admin/execute-pings.php. This one uses an iframe in the footer.

Change History

09/01/05 21:34:22 changed by ringmaster

  • attachment execute-pings.php added.

New file to handle pinging exclusively as a "stylesheet"

09/01/05 22:28:53 changed by matt

Some browsers wait for the stylesheets before rendering the page. Could you redo this as an iframe or similar?

09/01/05 22:40:01 changed by ringmaster

  • attachment ping.3.diff added.

Well, I'm dumb. Use THIS file, same /wp-admin/execute-pings.php. This one uses an iframe in the footer.

09/01/05 22:42:37 changed by ringmaster

The new files to use are ping.3.diff and execute-pings.php

This last iteration puts a 1x1 iframe in the admin footer instead of the stylesheet.

09/02/05 16:56:30 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [2833]) Move pings out-of-band to speed up posting. Props to Owen. fixes #1644