diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-06-15 11:24:40 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-06-15 11:24:40 +0200 |
commit | b6a8de853062407fb4ae5890048410f9ba07d373 (patch) | |
tree | e524df3dec93ab6b0f375e576de772ea0fd839b6 /apps/calendar/appinfo | |
parent | 7d29bee859769fd5db746e3f7a340d6c12c628dd (diff) | |
download | nextcloud-server-b6a8de853062407fb4ae5890048410f9ba07d373.tar.gz nextcloud-server-b6a8de853062407fb4ae5890048410f9ba07d373.zip |
don't clean and cache calendar on every update
Diffstat (limited to 'apps/calendar/appinfo')
-rw-r--r-- | apps/calendar/appinfo/update.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/calendar/appinfo/update.php b/apps/calendar/appinfo/update.php index a26c23f9ad1..ab8a5263bd9 100644 --- a/apps/calendar/appinfo/update.php +++ b/apps/calendar/appinfo/update.php @@ -15,8 +15,10 @@ if (version_compare($installedVersion, '0.2.1', '<')) { $r = $stmt->execute(array($color,$id)); } } -$calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser()); -foreach($calendars as $calendar){ - OC_Calendar_Repeat::cleancalendar($calendar['id']); - OC_Calendar_Repeat::generatecalendar($calendar['id']); +if (version_compare($installedVersion, '0.5', '<')) { + $calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser()); + foreach($calendars as $calendar){ + OC_Calendar_Repeat::cleancalendar($calendar['id']); + OC_Calendar_Repeat::generatecalendar($calendar['id']); + } }
\ No newline at end of file |