File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,13 @@ private function generateIcal(array $events = []): Component
104104 $ calendarComponent = $ componentFactory ->createCalendar ($ calendar );
105105
106106 // 4. Refresh
107- $ refreshProperty = new Property ('REFRESH-INTERVAL;VALUE=DURATION ' , new TextValue ('PT4H ' ));
107+ $ refreshProperty = new Property ('METHOD ' , new TextValue ('PUBLISH ' ));
108+ $ calendarComponent = $ calendarComponent ->withProperty ($ refreshProperty );
109+
110+ $ refreshProperty = new Property ('REFRESH-INTERVAL;VALUE=DURATION ' , new TextValue ('PT1H ' ));
111+ $ calendarComponent = $ calendarComponent ->withProperty ($ refreshProperty );
112+
113+ $ refreshProperty = new Property ('X-PUBLISHED-TTL ' , new TextValue ('PT1H ' ));
108114 $ calendarComponent = $ calendarComponent ->withProperty ($ refreshProperty );
109115
110116 // 5. Output
You can’t perform that action at this time.
0 commit comments