Skip to content

Commit

Permalink
Clear the cache at the beginning of middleware (paranoid)
Browse files Browse the repository at this point in the history
  • Loading branch information
stokarenko committed May 21, 2020
1 parent 94ffd9d commit ce38992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/batch_loader/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def initialize(app)
end

def call(env)
BatchLoader::Executor.clear_current

begin
@app.call(env)
ensure
Expand Down

0 comments on commit ce38992

Please sign in to comment.