nginx配置中将lua_code_cache配置成on/off来控制是否关闭lua 的cache缓存,如果设置为off.则每次修改lua脚本都会重新加载新的lua代码,从而实现快速调试响应。同时状态为off时启动或重启nginx都会提示:nginx: [alert] lua_code_cache is off; this will hurt performance in /path/to/nginx.conf。因为这会影响nginx性...
lua_code_cache off; //关闭lua缓存重启后⽣效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; //将lua程序⽤file⽂件加载 } nginx:[warn] lua_code_cache is off; this will hurt performance in /usr/local/nginx/conf/nginx.cof:87 ...
打开nginx.conf配置 server{ lua_code_cache off; //关闭lua缓存 重启后生效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; //将lua程序用file文件加载 } nginx:[warn] lua_code_cache is off; this will hurt performance in /usr/local/nginx/conf/nginx...
Hi Using nginx version: ngx_openresty/1.4.1.1, we have an app that's working properly with lua_code_cache off. When setting it to on, queries have the correct behavior only once, all subsequent calls will fail, making it look like a cach...
这个参数对lua的调试开发非常重要,作用是关闭或者开启lua的代码缓存,如果你再开发的时候需要实时看到代码变化后的效果,就关闭lua_code_cache即可。 lua_code_cache是默认开启状态的,做调试的时候可以设置为lua_code_cache off即可关闭缓存。 从0.9.3版本开始,lua_code_cache关闭时,ngx_lua服务的每个请求都将在单独的...
打开nginx.conf配置server{lua_code_cacheoff; //关闭lua缓存 重启后生效 server_name localhost; default_type 'text/plain'; content_by_lua_file /conf/lua/test.lua; // lua nginx 重启 缓存 加载 转载 mb5fe5605983816 2018-01-16 11:45:00 ...