Rails 4 caching compatible