cache invalidation for get_ports() #53