Implementation of Lua endpoint
if ngx.var.request_uri == "/ledge-invalidate/" and ngx.req.get_method() == "POST" then
local ledgeInvalidation = require "ledge-invalidate.lua"
ledgeInvalidation:new({
prefix = "ledge:cache:_1_:_2_:",
cache_key = {
[1] = {
"desktop",
"tablet",
"mobile"
},
[2] = {
"open",
"noaccess",
"expired",
"closed"
}
}
})
endLast updated