Flush cache on network changes.