updated query caching in Rails