nginx+php在调试过程中临时关闭缓存
2015-11-20 02:07
701 查看
1.禁用php的nginx缓存
location ~ .*\.(css|js|swf|php|htm|html )$ {
add_header Cache-Control no-store;
}
2.禁用php缓存
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=0
location ~ .*\.(css|js|swf|php|htm|html )$ {
add_header Cache-Control no-store;
}
2.禁用php缓存
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=0
相关文章推荐
- (总结)Nginx配置文件nginx.conf中文详解
- nginx + ffmpeg
- nginx使用分享
- 【nginx】常见的陷阱和错误
- windows下nginx安装、配置与使用
- CentOS安装Nginx
- 阿里云linux的nginx下面配置多站点
- Linux下自动分割Nginx日志文件(二)-----Cronolog
- nginx虚拟主机的配置
- fastdfs结合nginx做一个网盘
- laravel 5 页面504 Gateway Time-out nginx/1.8.0
- nginx.conf详解[转]
- Nginx虚拟主机配置
- linux Nginx重启、启动、停止
- Nginx配置文件参数详解
- 出现502, 判断是php,还是nginx出问题了
- Nginx支持比Apache高并发的原因
- 使用GoAccess分析Nginx日志
- php-fpm 未启动导致nginx 502
- Nginx [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)