An Nginx+PHP request processing problem is extremely slow, please help!
孙艺飞
孙艺飞 2019-04-19 14:32:18
0
1
1233

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

孙艺飞
孙艺飞

小小菜鸟

reply all (1)
孙艺飞

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.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!