Addressed comments: refactored get_link_and_update_cache method
Addressed comment