Hello!
On Wed, Oct 31, 2012 at 8:24 AM, Jason Dusek wrote:
> I am refactoring a twisted and lengthy Nginx configuration such
> that all the Lua is in a Lua file and the Nginx configuration uses the
> Lua in this manner:
>
> location = /x {
> content_by_lua 'require("lua_stuff").endpoints.x()';
> }
>
> This would not trigger reloading the module on every request, would it?
>
No. Lua modules are always loaded only once unless you turn off the
lua_code_cache directive or manually clear the corresponding entry in
the package.loaded table.
Best regards,
-agentzh