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
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