instance method
clear_cache!
Ruby on Rails 6.1.7.10
Since v3.1.12Signature
clear_cache!()
Clear any caching the database adapter may be doing.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 520
def clear_cache!
@lock.synchronize { @statements.clear } if @statements
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 520
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter