instance method uncached

Ruby on Rails 2.2.3

Last seen in v2.2.3

Signature

uncached(&block)

Disable the query cache within the block if Active Record is configured.

Parameters

block block
Source
# File activerecord/lib/active_record/query_cache.rb, line 13
    def uncached(&block)
      if ActiveRecord::Base.configurations.blank?
        yield
      else
        connection.uncached(&block)
      end
    end

Defined in activerecord/lib/active_record/query_cache.rb line 13 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::QueryCache

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close