Home > Backend Development > PHP Tutorial > nginx 缓存问题

nginx 缓存问题

WBOY
Release: 2016-06-23 13:28:22
Original
967 people have browsed it

具体问题是这样的,不知道大家有没有遇到过
有一台阿里云的服务器,环境是lnmp环境
在本地修改完文件后提交到服务器,第一次能正常访问到修改的内容,如果继续对文件修改然后上传,就需要刷新好几次页面才能出来,把nginx有关缓存的配置都关了,还是有这样的问题,求有经验的告知下


回复讨论(解决方案)

[Zend Opcache]
;zend_extension=opcache.so
;opcache.memory_consumption=128
;opcache.interned_strings_buffer=8
;opcache.max_accelerated_files=4000
;opcache.revalidate_freq=60
;opcache.fast_shutdown=1
;opcache.enable_cli=1
;opcache end
额,终于找到问题了,原来是这个Opcache引起的,php5.5版本以后自动绑定了opcache模块,如果不需要缓存将php.ini里面这段代码注释掉就好了。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template