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

 

posted @ 2015-11-20 02:07  LAOS  阅读(803)  评论(0编辑  收藏  举报