How can I reset render cache on an entity for current user in hook_entity_view_alter()?
At first I disabled the cache for the link, but the entity was cached, preventing the link from being shown or hidden.  Therefore, I disabled the cache for the entity and that worked.
In the alter hook:
$build['#cache']['max-age'] = 0

The entity is now rendered with the proper state of the cart link.