Asynchronous WordPress

When John Bloch and I (Eric Mann) started working with TechCrunch last year on their site redesign, one of the main goals was to improve site performance. Among the various tools we built to help meet that metric was a library called WP Async Task: an abstract library meant to give structure to asynchronous background tasks.

Thanks to WP Async Task, we can offload time-consuming requests (like Twitter interactions) from the main WordPress thread. Editors can publish posts as usual while expensive tasks run in the background rather than holding up the publication process.

tc performance

In June, the TechCrunch team presented on “Non-Blocking WordPress,” explaining some of the approaches we took. Attendees were interested in learning more about WP Async Task and particularly interested in whether the code was available anywhere.

Being big believers in the power of open-source and giving back to the community, we’re thrilled to say that TechCrunch has decided to open-source the library and make it available on GitHub. Check out the library and look at the documentation on how to use the library in your own code.

  1. Hey Eric,

    Looks like I have a use-case where I finally need this, so really glad you created it.

    That said, why did you guys prefix it with “WP_” rather than “TenUp_”? I thought best practice was that the former was reserved for WordPress core?

    -Mike

  2. Only one comment for such a powerful tool?

    Anyhow, great class, thanks for creating and thanks to TechCrunch for releasing it. Will use!

Leave a Comment

Finely crafted websites & tools that make the web better.