From 9fd220db83e9945b092373d91dee9bef5d3bc187 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 12 Dec 2012 13:34:18 +0000 Subject: [PATCH] * Calendar/eSync: performance optimization: we only want to fetch the owners events, where he is a participant to, as we assume, events feature the user as the organizer only, are of no use in a users calendar on a mobile device --- calendar/inc/class.calendar_activesync.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_activesync.inc.php b/calendar/inc/class.calendar_activesync.inc.php index c4a6fafe2d..4858be09a7 100644 --- a/calendar/inc/class.calendar_activesync.inc.php +++ b/calendar/inc/class.calendar_activesync.inc.php @@ -1241,7 +1241,8 @@ return array(); // temporary disabling meeting requests from calendar if ($type != 'calendar') return false; if (!isset($this->calendar)) $this->calendar = new calendar_boupdate(); - $ctag = $this->calendar->get_ctag($owner,'owner',true); // true only consider recurrence master + //$ctag = $this->calendar->get_ctag($owner,'owner',true); // true only consider recurrence master + $ctag = $this->calendar->get_ctag($owner,false,true); // we only want to fetch the owners events, where he is a participant too // workaround for syncstate = 0 when calendar is empty causes synctate to not return 0 but array resulting in foldersync loop if ($ctag == 0) $ctag = 1; $changes = array(); // no change