In the Linux environment, nginx load balancing is configured. Because the cache mechanism may not be successfully configured in the virtual host configuration file nginx.conf, the page does not refresh and the content in the cache is still displayed.
Finally, comment on the relevant cache configuration in the nginx.conf file, and then go to the tmp directory to view the generated cache file, as shown in the figure:
Here We need to delete the proxy_cache and proxy_temp files:
Restart the nginx service: sercive nginx restart
The above is the detailed content of How to solve the problem that the page does not refresh due to nginx configuration in Linux environment. For more information, please follow other related articles on the PHP Chinese website!