Skip to content

Commit

Permalink
feat(bk-cache/jwt-key.lua): make the ttl to 24 hours for jwt-key, it …
Browse files Browse the repository at this point in the history
…never change
  • Loading branch information
wklken committed Nov 12, 2024
1 parent 2c82c0e commit 9e980be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apisix/plugins/bk-cache/jwt-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
local core = require("apisix.core")
local bk_apigateway_core_component = require("apisix.plugins.bk-components.bk-apigateway-core")

local JWT_PUBLIC_KEY_CACHE_TTL = 600
-- NOTE: the jwt would never changed? so we can cache it forever
local JWT_PUBLIC_KEY_CACHE_TTL = 60 * 60 * 24
local JWT_PUBLIC_KEY_CACHE_COUNT = 1000
local jwt_public_key_lrucache = core.lrucache.new(
{
Expand Down

0 comments on commit 9e980be

Please sign in to comment.