instance method
clear_cache!
Ruby on Rails 5.2.8.1
Since v4.2.9 Last seen in v5.2.8.1Available in: v4.2.9 v5.2.8.1
Signature
clear_cache!()
Clears the prepared statements cache.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 165
def clear_cache!
reload_type_map
@statements.clear
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 165
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter