Lukket

WordPress function needed for non-blocking REST request.

I'm making a call to an internal endpoint in order to try and speed up a task.

I don't need to wait for the task (that awaits at that endpoint) to complete for my script to move on, but it's still waiting to finish. I'm using the following:

$argsForRequest = array(

'agency_code' => '1234',

'another_param_here' => $myVar,

'timeout' => 0.01,

'blocking' => false,

'sslverify' => false,

);

$request = new WP_REST_Request( 'POST', '/my/custom/endpoint' );

$request->set_query_params( $argsForRequest );

$response = rest_do_request( $request );

I'd like for someone to show me how to make this request non-blocking.

Thanks

Evner: PHP, WordPress, JavaScript, MySQL, Software Arkitektur

Se mere: call member function remove_current_page non object, non blocking driver object, non blocking connect socket, wordpress rest api endpoints, wp-async-task, how to call api in wordpress, wordpress backend processing, wordpress rest api authentication, wordpress enable rest api, wordpress long running script, wordpress rest api example, call member function recordcount non object, fatal error call member function set_file non object, wordpress blog needed, wordpress theme needed, async socket non blocking, wordpress developers needed, wordpress designer needed, website needed non profit organization, non blocking server linux

Om arbejdsgiveren:
( 0 bedømmelser ) Los Angeles, United States

Projekt ID: #27902978

7 freelancere byder i gennemsnit $21/timen for dette job

ahmadayaz

Hi I am confident that I can do this job and get it done, Lets get started and discuss in depth. Looking forward for your reply. Thanks-

$22 USD / time
(297 bedømmelser)
8.4
seekdeveloper

Hi, I have read your post and understood your requirement. Looking for the freelancer to work on your next project? Or just need some issues/bugs/fixes ASAP? I have 11+ years of software experience in fortune 500 comp Flere

$25 USD / time
(125 bedømmelser)
8.8
evgendob

Hello. Wordpress development expert ready to help you with API call customization. I have more 400 good reviews and more 9 years of development experience behind, so all will be done with best quality and timeframe. F Flere

$20 USD / time
(593 bedømmelser)
8.1
(219 bedømmelser)
7.4
mmadi

Dear, client. checked (WordPress function needed for non-blocking REST request.) I am expert in JavaScript, MySQL, PHP, Software Architecture, WordPress and have 10 years experience. So I can be the best developer Flere

$17 USD / time
(51 bedømmelser)
7.1
TurboWebWP

I can help with the speed optimization part. You're losing 11% traffic and 7% conversions for every extra second of load time. I am an expert in this specific field of speed optimization and own a company from Romania Flere

$20 USD / time
(44 bedømmelser)
6.3
artyomdev200

Hello, dear! I am really glad to see you here! I have many experience with wordpress 4+ years. I am skillful with wordpress themes and plugins. And also I have some friends with good web and app skills. We will do an Flere

$20 USD / time
(0 bedømmelser)
0.0