Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#31740 closed enhancement (wontfix)

Add multi_curl method to wp_remote_get

Reported by: ahansson89 Owned by:
Priority: normal Milestone:
Component: HTTP API Version:
Severity: normal Keywords:
Cc: Focuses: performance

Description

It would be nice to have a way to utilize multi_curl in a wp_remote_get request as it will speed up the execution time significantly when relying on multiple remote requests.

Change History (4)

#1 @dd32
12 years ago

  • Component General → HTTP API
  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

Due to the complexity of implementing it for both cURL and Streams, I'm marking this as wontfix, instead of adding extra complexity to the library.

It's a potential that we might move to another well maintained HTTP library at some point, and multi-get would be a nice-to-have feature then.

#2 @ahansson89
12 years ago

So this can happen once we move on from php 5.2 right?

#3 @rmccue
12 years ago

Actually, it's possible in 5.2: ​https://github.com/rmccue/Requests (one such library that @dd32 alludes to)

However, it's a significant amount of work to get it playing nicely across everything, and the HTTP API is a large piece of code with a small number of eyes watching it right now. Someday in the future though, it's absolutely a possibility (5.2 or not), just needs a chunk of time allocated to it. :)

#4 @ahansson89
12 years ago

Yea I was looking at that one too actually.

The HTTP API is for sure a large piece of code, and I understand why there is not many resources being allocated to it right now.

Note: See TracTickets for help on using tickets.