does anyone have a clue why only 1 request is served concurrently with the rest api? the requests to WP-REST seem to be queued on both MAMP locally and Apache with mpm_prefork. on apache the same process is used to serve queued requests rest requests.. wordpress pages including the admin are not effected, this behaviour is only encountered with the rest api
if I add a sleep of 10 seconds in get_items function and hit the request 3 times, the requests take 10, 20 and 30 seconds to complete respectively
@cachiama That's interesting, I'm not sure I fully understand what's going on -- if this is an issue with the WP-API itself, I suggest asking over in the #core-restapi channel on the WordPress Slack: chat.wordpress.org
@Shelob9 Meant to tag you on review of kadamwhite/wordpress-rest-api#176 btw, would welcome your input if you have time to check out the discussion!