Hi,
I'd like to propose a feature and maybe ask for few hints on how to implement it.
`lua_code_cache` should be available from `main` context so it can be configured from the command line as `openresty -g 'lua_code_cache off;'` that
would act as a new default. This would be very helpful for local development where the only way to disable it is to change some file.
I see that all ngx_lua directives are available only in `http` context and up, so not sure how easy that would be to implement.
I imagine the implementation would be quite similar to the error_log which is accessible on several contexts: https://github.com/nginx/nginx/blob/f8a9d528df92c7634088e575e5c3d63a1d4ab8ea/src/core/ngx_log.c#L34-L44
Is there any technical reason why this wasn't done sooner?
If not, what would be the hints to start working on a patch?
Cheers
Michal