-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ext-plugin): don't use stale key #5782
Conversation
apisix/plugins/ext-plugin/init.lua
Outdated
@@ -677,6 +677,7 @@ local function create_lrucache() | |||
|
|||
lrucache = core.lrucache.new({ | |||
type = "plugin", | |||
invalid_stale = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do some refactor so we don't need to specify the lrucache options twice? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can rename create_lrucache
to recreate_lrucache
?
okey, done |
Co-authored-by: sunaowei <sunaowei@neild>
Co-authored-by: sunaowei <sunaowei@neild>
Co-authored-by: sunaowei <sunaowei@neild>
What this PR does / why we need it:
ext_plugin an expired key in lrucachd that could not find in go runner。
patch for #5309
Pre-submission checklist: