jesjos / active_record_upsert

Upsert for Rails 5 / Active Record 5
MIT License
207 stars 51 forks source link

Fix query cache reset #105

Closed kzaitsev closed 4 years ago

kzaitsev commented 4 years ago

Right now upsert for ActiveRecord 6.0 + doesn't reset query cache. This compatibility patch fixes it.

https://github.com/rails/rails/blob/6-0-stable/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb#L17