updated README to reflect recent changes regarding the lua code cache control.

This commit is contained in:
agentzh (章亦春) 2011-01-24 18:17:58 +08:00
Родитель e1522b1d9f
Коммит 7d9e041879
1 изменённых файлов: 19 добавлений и 5 удалений

Просмотреть файл

@ -282,8 +282,10 @@ set_by_lua_file
Basically the same as `set_by_lua`, except the code to be executed is in the
file specified by `<path-lua-script>`.
The user code is loaded once at the first request and cached. Nginx config must
be reloaded if you modified the file and expected to see updated behavior.
When the Lua code cache is on (this is the default), the user code is loaded
once at the first request and cached. Nginx config must be reloaded if you
modified the file and expected to see updated behavior. You can disable the
Lua code cache by setting `lua_code_cache off;` in your nginx.conf.
content_by_lua
--------------
@ -487,13 +489,15 @@ content_by_lua_file
Basically the same as `content_by_lua`, except the code to be executed is in
the file specified by `<path-lua-script>`.
The user code is loaded once at the first request and cached. Nginx config must
be reloaded if you modified the file and expected to see updated behavior.
Nginx variables can be used in <path-to-lua-script> string, in order to provide
greater flexibility in practice. But this feature must be used carefully, so is
not recommend for beginners.
When the Lua code cache is on (this is the default), the user code is loaded
once at the first request and cached. Nginx config must be reloaded if you
modified the file and expected to see updated behavior. You can disable the
Lua code cache by setting `lua_code_cache off;` in your nginx.conf.
rewrite_by_lua_file
-------------------
@ -510,6 +514,11 @@ Nginx variables can be used in <path-to-lua-script> string, in order to provide
greater flexibility in practice. But this feature must be used carefully, so is
not recommend for beginners.
When the Lua code cache is on (this is the default), the user code is loaded
once at the first request and cached. Nginx config must be reloaded if you
modified the file and expected to see updated behavior. You can disable the
Lua code cache by setting `lua_code_cache off;` in your nginx.conf.
access_by_lua_file
-------------------
@ -524,6 +533,11 @@ Nginx variables can be used in <path-to-lua-script> string, in order to provide
greater flexibility in practice. But this feature must be used carefully, so is
not recommend for beginners.
When the Lua code cache is on (this is the default), the user code is loaded
once at the first request and cached. Nginx config must be reloaded if you
modified the file and expected to see updated behavior. You can disable the
Lua code cache by setting `lua_code_cache off;` in your nginx.conf.
lua_need_request_body
---------------------