I use on my site wp_remote_get to retrieve data from mydomain.com/wp-json/wp/v2/pages/75
When I run it on my local host, it works fine, but after sending to the production server (mydomain.com), a message appears:
"CURL Error 28: The operation expired after 5000 milliseconds with 0 bytes received"
+ VPS starts to go crazy (100% CPU and memory usage).
It can not recover data from the same domain. When I changed the URL to a random REST mockup, it works again.
How can I get WP REST data on the same domain?
(Info VPS: debian 9, php 7.3, curl 7.52.1 and last wordpress 5.2.2)
Thanks in advance!