Home >Backend Development >PHP Tutorial >Clear nginx server website cache data

Clear nginx server website cache data

WBOY
WBOYOriginal
2016-07-28 08:27:051317browse

After the company website went online, there were always some small bugs. However, after these bugs were corrected on vi, I found that there were no changes when I opened the changed web page. After searching on Google, some people said to delete the "/var/cache/nginx" folder. , but after I found this folder, deleted it, and restarted nginx, there was still no response. Later, I saw someone commenting on stackoverflow that I could change the nginx.conf configuration file and set the sendfile parameter to off (it is on by default). Restart nginx, refresh the page, and find that it is back to normal. At the same time, if you find this problem, you need to first confirm that the browser cache data has been cleared. Reference documentation: http://stackoverflow.com/questions/6236078/how-to-clear-the-cache-of-nginx

The above has introduced how to clear the nginx server website cache data, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn