rails/rails — pull request #17140 by henders (2014-10-02 10:34:10+00:00)
Title: Issue #17131: Cause ActiveRecord::Base::reload to also ignore the QueryCache

This pull request gives a suggested implementation for causing the ActiveRecord::Base::reload method to not only ignore association and aggregation caches, but also to ignore the query cache.

The main use case here is that an external process updates a row in the DB, and the developer is expecting 'reload' to also pull those new changes in.

This is a small change by wrapping the reload code body within an ActiveRecord::Base.connection.uncached block.