[cache_dump/restore] add discards to the xml format