Read more

Discarding cached SQL query results in ActiveRecord

Thomas Klemm
May 26, 2014Software engineer

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 .

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot
Posted by Thomas Klemm to makandra dev (2014-05-26 14:41)