Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
catbro666 committed Dec 23, 2022
1 parent 090f727 commit e98f95f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kong/runloop/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ local function register_events()
balancer.stop_healthcheckers(CLEAR_HEALTH_STATUS_DELAY)
end

kong.cache:flip()
core_cache:flip()

kong.default_workspace = default_ws
ngx.ctx.workspace = default_ws

Expand Down Expand Up @@ -449,9 +452,6 @@ local function register_events()

log(DEBUG, "flushing caches as part of the config flip on worker #", worker_id)

kong.cache:flip()
core_cache:flip()

if router then
replace_router(router)
current_router_hash = router_hash
Expand Down

0 comments on commit e98f95f

Please sign in to comment.