Added cache-reset on completion of scan.