View Single Post
Old 30th July 2012, 15:12
tom123 tom123 is offline
Join Date: Feb 2012
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by till View Post
And thats the reason why the code writes to the dbmaster and not the local db api, if you change it to the local db, you cant see any reference on the master.
Ok, in this case, the backup script is working properly because the client calls
$app->dbmaster->datalogInsert('web_backup', $insert_data, 'backup_id');
datalogInsert will do the insert and then calls datalogSave that will write on "db" and not on "dbmaster".

In this way, the backup item is wrote properly on sys_datalog on the client and never on the master.

If this is correct, cron script is working properly.
Reply With Quote