The config.ini.php file is just a file on the server when you save settings it writes to the file and updates the Sql tables. If it gets erased again I would start talking to the host, It should not be conpletly empty. If it was corrupt you may see a setting with wrong values but not a completly empty file.