rails/rails — Issue #4887: Rails SQL Caching
Author: suchard
Created: 2012-02-05 12:46:43+00:00
State: open

User.find("4") and User.find(4) don't get cached as the same query, even though the end result will always be the same. This could be considered annoying if in your code you have to either call params[:id].to_i in a few different places or id.to_s in other places in order for the queries to be reused from the cache.