nginx+php在调试过程中临时关闭缓存
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
- 上一篇 »ansible实验
- 下一篇 »Linux环境Nginx安装多版本PHP
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