Now there is a php page, which will use http requests to request some data from itself during data processing. In this case, nginx execution is extremely slow (it has not been encountered in the apache php environment). This Why? How to solve it?
The environment is: Nginx php redis mysql
The reason for writing this is that the same program will be deployed on multiple servers, so some common data uses the stupid method http Request to obtain
To add: The page requested by http will first get the redis data. If redis does not get the data from the database, then write it to redis and return the corresponding data.
There is no lag on the page when redis has data. Only when redis is deleted and regenerated, it will be very slow and the amount of data is not large. The maximum is 49914 characters.