Delay fetching of carddata and set ETag and size instead.

This commit is contained in:
Thomas Tanghus 2012-07-09 01:48:42 +02:00
parent 47aaca49a1
commit f5c329af98
1 changed files with 3 additions and 1 deletions

View File

@ -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'] );
}