Added purging of invalidated archives in scheduled tasks