Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 496 Bytes

enable-lua-code-cache.md

File metadata and controls

20 lines (15 loc) · 496 Bytes

Enable Lua code cache

server {
  location / {
    lua_code_cache on;
    content_by_lua_file /path/to/script.lua;
  }
}
  • lua_code_cache - controls Lua code caching
  • on; - enables code cache
  • content_by_lua_file - lib:nginx-lua directive to load code from specified Lua code file
  • /path/to/script.lua - path with Lua code to load

group: code_cahe

link_youtube: https://youtu.be/5xuy_F8b6Q4