ActiveRecord query caching is enabled when a controller's action is invoked. I also know that you can do something like this to temporarily enable caching for a given Model for a given code block:
User.cache do
....
end
But is there a way to enable query caching for other contexts (e.g. when a script is run under the rails environment using ./script/runner)?