• Resolved georg77

    (@georg77)


    Hi,

    we use your plugin on a website to display a calendar list on the front page and a full calendar. Everything works just great except for one issue. The page is super slow, it takes the server more than 8 seconds to respond. As soon as we deactivate the plugin, load times are normal again. We run wordpress 5.0.1 on PHP 5.6 (due to legacy software), ics calendar 2.1.4.

    This is the short code, which is placed in a widget (with a different url, obviously):

    [ics_calendar url=”https://url-to-calendar.ics” title=”none” description=”none” view=”list” count=”6″ format=”d.m.y” ]

    Any idea what could cause the issue?

    Thanks and kind regards,

    Georg

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I assume the slowdown is only affecting pages that include a calendar, correct? (I clicked around the site and this seemed to be the case.)

    There are a couple of possible reasons for this to load slowly:

    1. A lag/latency in retrieving the ICS file from the remote calendar server.

    2. A performance issue on your server causing the process of parsing the calendar to take a long time.

    By default the plugin uses WordPress transients to cache calendar data for 10 minutes, so if the problem was #1, it wouldn’t happen on every page load.

    So I think it’s #2. This could be one of three reasons:

    1. Inadequate server resources.

    2. A very large ICS file.

    3. Inefficient code in the plugin.

    Most likely we can’t do anything about #1. To determine if it’s #2, I would like to see the ICS file itself — can you email the calendar URL to the support email address on the plugin’s admin page?

    #3 is of course a possibility, and would require me to refactor the code in the plugin. I have some ideas about where inefficiencies might exist.

    This issue was resolved by reworking how the plugin caches calendar data in version 2.2.0.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Slow Server response’ is closed to new replies.