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