fixed issue where when removing a link it was not reflected in the cache