<div dir="ltr"><div>I want to load a table of key/value pairs from the file system when nginx starts and not every time a request comes in. I am going to use the key/value pairs to compare against incoming post args in my location block. </div><div><br></div><div>My question is how many times is init_by_lua_block called ? or is there somewhere else I should be loading the file ?</div><div><br></div><div>server {<br></div><div>         init_by_lua_block {</div><div>             some_global_var = stuff from file io read;</div><div>         }</div><div><br></div><div>          location \ {</div><div>                 ...</div><div>         }</div><div>}</div></div>