Skip to content

Commit

Permalink
Merge pull request #719 from honestica/fix_query_cache_clear
Browse files Browse the repository at this point in the history
Better query cache clearing strategy
  • Loading branch information
jkowens authored Feb 2, 2021
2 parents 6a19236 + fd1eb0c commit a674de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/activerecord-import/adapters/postgresql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def insert_many( sql, values, options = {}, *args ) # :nodoc:
else
select_values( sql2insert, *args )
end
query_cache.clear if query_cache_enabled
clear_query_cache if query_cache_enabled
end

if options[:returning].blank?
Expand Down

0 comments on commit a674de6

Please sign in to comment.