update cache and links