Skip to content

Commit

Permalink
Don't reset the cache in lazy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tkan145 committed Aug 28, 2024
1 parent 4b77745 commit e77139d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gateway/src/apicast/configuration_loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ local function lazy_load_config(configuration, host)
if not config then
ngx.log(ngx.WARN, 'failed to get config for host: ', host)
end
_M.configure(configuration, config, host)
-- Lazy load will never returned stale data, so no need to reset the
-- cache
_M.configure(configuration, config)
end

function lazy.rewrite(configuration, host)
Expand Down

0 comments on commit e77139d

Please sign in to comment.