Rails 3.1/3.2: do not use the cache in case a join condition is used