Rails caching bug