method

cache

cache(&block)
public

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