Lua maxsnap3/13/2023 ![]() ![]() ![]() Usually you can either use the init_by_lua In *_by_lua_file cannot be cached (unless you cache the results yourself). Such as those specified by set_by_lua, content_by_lua,Īccess_by_lua, and rewrite_by_lua will not be updated when you edit the inlined Lua code in your nf file because only the Nginx config file parser can correctly parse the nfįile and the only way is to reload the config fileīy sending a HUP signal or just to restart Nginx.Įven when the code cache is enabled, Lua files which are loaded by dofile or loadfile Please note however, that Lua code written inlined within nf With this in place, developers can adopt an edit-and-refresh approach. So the Lua files referenced in set_by_lua_file,Īnd all Lua modules used will be loaded from scratch. When turning off, every request served by ngx_lua will run in a separate Lua VM instance, starting from the 0.9.3 release. This directive was first introduced in the v0.10.7 release.Įnables or disables the Lua code cache for Lua code in *_by_lua_file directives (like set_by_lua_file and Note that this directive does not affect the memory allocated by LuaJIT's own allocator based on the mmap May make the counting faster when subrequests are involved. The current implementation uses an NGINX log phase handler to do the request counting. Lua_malloc_trim 0 # turn off trimming completely Just tune the number for your own use cases.Ĭonfiguring the argument to 0 essentially turns off the periodical memory trimming altogether. Smaller memory footprint while larger numbers usually lead to less CPU time overhead and relatively larger memory footprint. Smaller numbers mean more frequent releases, which may introduce higher CPU time consumption and You can configure the request countīy using your own numbers. This directive was first introduced in the v0.9.1 release.Īsks the underlying libc runtime library to release its cached free memory back to the operating system every If you do not want a default Content-Type response header for your Lua request handlers, then turn this directive off. ![]() Specifies whether to use the MIME type specified by the default_type directive for the default value of the Content-Type response header. ![]() How good is Moon+ Reader on eink devices right now for pdf ? I read a lot about that one but never tried it.Context: http, server, location, location if With this it might crash the first time you open it but then it should be pretty stable. I found the patch on a chinese forum and for the bug reports on koreader github this also works for boyue devices. Not sure if you need the screen.height line for a boyue device, that's to resize the size of koreader in case it doesn't detect the right screen resolution. You have to create a file called a into the folder koreader on your main memory. #4 Germanc 05-13-2016, 03:44 PMKOreader can be modified to make it work on boyue devices (I did it to make it work on my Onyx reader). ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |