Merge "Add LinkCache::getSelectFields() and use it in a few places"