Add caching_allowed? that was removed from Rails 4 core