PHP CURL is too slow for localhost

后端 未结 4 1579
暗喜
暗喜 2020-12-17 22:26

I have setup two apps in my WAMP environment. Performance of both the sites is OK. They return data in less than a second. The problem is that when I curl one site from anot

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 23:09

    If you are using *.local TLD, you can solve this and enjoy fast loading times by adding both, IPv4 and IPv6 entries in the hosts file

    127.0.0.1   test.local
    ::1         test.local
    

    Best

提交回复
热议问题