Ideas

This board is only for raising and voting on feature requests (Ideas / Suggestions).
Please raise any Bugs via "Get Help" button on your calendar admin dashboard.

Adding settings to the UI for the generated ics file

Everyone can have benefit because this issue can become a serious performance problem if you have many items in your calendar.

The following URL is used by mobile calendar subscribers by download the generated ICS file. This file can become huge.

/?plugin=all-in-one-event-calendar&controller=ai1ec_exporter_controller&action=export_events&no_html=true

It appears that the resulting file contains all activities from the past and the future and is almost 6mb in size(!)

Since we have many mobile users (with a slow mobile connection) who are subscribed to our calendar, this caused serious problems and other websites on the same server became unreachable.

I found a temporary solution in the following file:

/wp-content/plugins/all-in-one-event-calendar/lib/command/export-events.php

I have adjusted these values ​​to make the file smaller.

        $filter = apply_filters ('ai1ec_export_filter', $ filter);
        $start = $ this -> _ registry-> get ('date.time', '-3 years');
        $end = $ this -> _ registry-> get ('date.time', '+3 years');
        $search = $ this -> _ registry-> get ('model.search');

Another setting that should actually be arranged via the user interface is the following file:

/wp-content/plugins/all-in-one-event-calendar/lib/import-export/ics.php

                $e-> setProperty (
                    'X-ALT-DESC',
                    $ this -> _ sanitize_value ($ html_content),
                    array (
                        'FMTTYPE' => 'text / html',
                    )
                );

To halve the file size of the file to be generated, I have set out the HTML content to adjust rule 962:

 $ this -> _ sanitize_value (/ * $ html_content * / '’),

It would be nice if both becomes a setting in the user interface so that it does not have to be changed each time after an update.

  • Guest
  • Dec 22 2017
  • Needs More Votes
  • Attach files
  • Admin
    Rik Logtenberg commented
    December 26, 2017 12:49

    Hello! Thanks for raising this idea.

    We will check the votes for it, in order to prioritize the development.

    Thanks,
    Timely Dev Team