I know that in Rails 2.3.2 ActiveRecord requests are cached, that is, you can see something in the development / production log:
CACHE (0.0ms) SELECT * FROM `users` WHERE `users`.`id` = 1
I was wondering if the same principles apply to rake tasks.
I have a rake task that will request a lot of different models, and I want to know if I should implement my own caching or if this is enabled by default.
Also, is there a way to see sql queries that run during a rake task? As in the development / production magazine
source
share