4 # Enable the query cache within the block if Active Record is configured.
6 if ActiveRecord
::Base.configurations
.blank
?
9 connection
.cache(&block
)
13 # Disable the query cache within the block if Active Record is configured.
15 if ActiveRecord
::Base.configurations
.blank
?
18 connection
.uncached(&block
)
28 ActiveRecord
::Base.cache
do