Discarding cached SQL query results in ActiveRecord
ActiveRecord
caches results of SQL queries
Show archive.org snapshot
. If you want to discard the cached results for one model, you can call
MyModel.connection.clear_query_cache
Show archive.org snapshot
.