https://github.com/openresty/lua-nginx-module/#lua_code_cache
Disabling the Lua code cache is strongly discouraged for production use and should only be used during development as it has a significant negative impact on overall performance. For example, the performance of a "hello world" Lua example can drop by an order of magnitude after disabling the Lua code cache.
On Thursday, November 29, 2018 at 3:33:56 PM UTC+8, Or wrote:
1.lua_cache_code = ON 我很害怕当我把lua_cache_code开启之后,会导致内存泄露,我对这个功能的理解不是很清楚,是把我的所有代码文件的代码和变量全都加载到内存中吗?
2.在openresty中写lua逻辑代码的时候,应该注意那些问题?如果造成内存泄露,有没有什么办法可以检测呢?