diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-09 01:48:42 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-09 01:48:42 +0200 |
commit | f5c329af981f59f78c12648ea41c258f477f3e82 (patch) | |
tree | 53a29b73b8b3f6dbb4c832a2a8559c85018cbe88 | |
parent | 47aaca49a11997ed2d0d6a92df730f42df77d88c (diff) | |
download | nextcloud-server-f5c329af981f59f78c12648ea41c258f477f3e82.tar.gz nextcloud-server-f5c329af981f59f78c12648ea41c258f477f3e82.zip |
Delay fetching of carddata and set ETag and size instead.
-rw-r--r-- | apps/contacts/lib/connector_sabre.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/contacts/lib/connector_sabre.php b/apps/contacts/lib/connector_sabre.php index c967e906601..b712d9eed25 100644 --- a/apps/contacts/lib/connector_sabre.php +++ b/apps/contacts/lib/connector_sabre.php @@ -138,8 +138,10 @@ class OC_Connector_Sabre_CardDAV extends Sabre_CardDAV_Backend_Abstract { foreach($data as $i){ $cards[] = array( 'id' => $i['id'], - 'carddata' => $i['carddata'], + //'carddata' => $i['carddata'], 'uri' => $i['uri'], + 'size' => strlen($i['carddata']), + 'etag' => md5($i['carddata']), 'lastmodified' => $i['lastmodified'] ); } |