diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-12 14:25:49 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-12 14:25:49 +0200 |
commit | 3d36e8380648e231e8db1bb8410a47451b598776 (patch) | |
tree | 077a1db9cc381ea18ab6e8630df562a93c922e2e /program/steps | |
parent | 2b72ec46a761ded28c83ef2ac544c9406a874802 (diff) |
Performance fix: don't send vcard/photo data to the browser after contact update
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/addressbook/save.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 94556f96b..7451f433b 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -165,6 +165,10 @@ if (!empty($cid)) { $a_js_cols[] = rcube::Q((string)$record[$col]); } + // performance: unset some big data items we don't need here + $record = array_intersect_key($record, array('ID' => 1,'email' => 1,'name' => 1)); + $record['_type'] = 'person'; + // update the changed col in list $OUTPUT->command('parent.update_contact_row', $cid, $a_js_cols, $newcid, $source, $record); |