diff --git a/classes/GoogleCalendarService.php b/classes/GoogleCalendarService.php index 5da252a..984d677 100755 --- a/classes/GoogleCalendarService.php +++ b/classes/GoogleCalendarService.php @@ -35,7 +35,7 @@ class GoogleCalendarService { ); try { - Log::debug('G-Calendar: Call google with #getCalendar for calendar with id: ' . $calendarId); + //Log::debug('G-Calendar: Call google with #getCalendar for calendar with id: ' . $calendarId); $response = $this->service->events->listEvents($calendarId, $params); Cache::put($this->cacheKeyCalendarGet.$calendarId, $response, $cacheTime); @@ -53,10 +53,10 @@ class GoogleCalendarService { public function calendarList() { $cachedCalendarList = Cache::get($this->cacheKeyCalendarList); $cacheTime = Settings::get('cache_time', $this->cacheTimeDefault); - + if(!isset($cachedCalendarList) || $cacheTime == 0) { try { - Log::debug('G-Calendar: Call google with #calendarList.'); + //Log::debug('G-Calendar: Call google with #calendarList.'); $response = $this->service->calendarList->listCalendarList()->getItems(); Cache::put($this->cacheKeyCalendarList, $response, $cacheTime); @@ -100,7 +100,7 @@ class GoogleCalendarService { } array_push($events, $calendarEvents); } - + return $events; } -} \ No newline at end of file +}