0

I have created many websites that get all there data from a API. (located on the same server on most cases).

The websites are operation really slow, of all the curl requests.

I first thought it was our mysql server (sepparate server) but now we implemented caching it's still slow.

Is there a good way to find out why it takes so long to do the curl requests. And what would be a good way to go?

4

2 回答 2

1

可以使用浏览器休息客户端指向您的 API 并使用分析工具 (xdebug/xhprof) 来查找瓶颈的来源。可能确保 api 调用在本地解析,并且在回来之前不要一直到互联网(但可能不会节省太多时间)。建议从 API 代码开始。

于 2013-01-17T23:06:01.777 回答
0

问题不在于 cURL 请求。

于 2013-01-18T11:22:05.763 回答