Skip to content

Commit 6640587

Browse files
committed
bumped the API version to 0.10.7; also documented that lua_malloc_trim was first introduced in ngx_lua 0.10.7.
1 parent 1173cc7 commit 6640587

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,13 +1106,20 @@ Just tune the number for your own use cases.
11061106

11071107
Configuring the argument to `0` essentially turns off the periodical memory trimming altogether.
11081108

1109+
```nginx
1110+
1111+
lua_malloc_trim 0; # turn off trimming completely
1112+
```
1113+
11091114
The current implementation uses an NGINX log phase handler to do the request counting. So the appearance of the
11101115
[log_subrequest on](http://nginx.org/en/docs/http/ngx_http_core_module.html#log_subrequest) directives in `nginx.conf`
11111116
may make the counting faster when subrequests are involved. By default, only "main requests" count.
11121117

11131118
Note that this directive does *not* affect the memory allocated by LuaJIT's own allocator based on the `mmap`
11141119
system call.
11151120

1121+
This directive was first introduced in the `v0.10.7` release.
1122+
11161123
[Back to TOC](#directives)
11171124

11181125
lua_code_cache

doc/HttpLuaModule.wiki

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,8 @@ may make the counting faster when subrequests are involved. By default, only "ma
866866
Note that this directive does *not* affect the memory allocated by LuaJIT's own allocator based on the <code>mmap</code>
867867
system call.
868868
869+
This directive was first introduced in the <code>v0.10.7</code> release.
870+
869871
== lua_code_cache ==
870872
'''syntax:''' ''lua_code_cache on | off''
871873

src/api/ngx_http_lua_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/* Public API for other Nginx modules */
2020

2121

22-
#define ngx_http_lua_version 10006
22+
#define ngx_http_lua_version 10007
2323

2424

2525
typedef struct {

0 commit comments

Comments
 (0)