membphis commented on code in PR #8113:
URL: https://github.com/apache/apisix/pull/8113#discussion_r999624742
##########
apisix/core/ai.lua:
##########
@@ -17,6 +17,25 @@
local require = require
local core = require("apisix.core")
local ipairs = ipairs
+local pcall = pcall
+local loadstring = loadstring
+local encode_base64 = ngx.encode_base64
+
+local get_cache_key_func
+local get_cache_key_func_def_render
+
+local get_cache_key_func_def = [[
+return function(ctx)
+ local var = ctx.var
+ return var.uri
+ {% if route_flags["methods"] then %}
+ .. "\0" .. var.method
Review Comment:
the `uri`, `host` and `method`, they should generally not contain `#`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]