Skip to content

Commit

Permalink
8 mantis ilias 42091, readds removed cache code in ilCalenderAuthenti…
Browse files Browse the repository at this point in the history
…cationToken
  • Loading branch information
chlulei committed Nov 7, 2024
1 parent e032226 commit a00a7f4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ public function storeIcal(): void
*/
public function isIcalExpired(): bool
{
return true;
if (!ilCalendarSettings::_getInstance()->isSynchronisationCacheEnabled()) {
return true;
}
if (!ilCalendarSettings::_getInstance()->getSynchronisationCacheMinutes()) {
return true;
}
return time() > ($this->ical_ctime + 60 * ilCalendarSettings::_getInstance()->getSynchronisationCacheMinutes());
}

public function add(): string
Expand Down

0 comments on commit a00a7f4

Please sign in to comment.