method

cache

rails latest stable - Class: ActiveRecord::QueryCache

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

cache(&block)
public

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