Okay
  Public Ticket #3959906
Too many events loading, bogs calendar down
Open

Comments

  •  1
    mvanderweide started the conversation

    My calendar loads 105-200 events by default even when using calendar__layout="day" and filter__max_date="end_of_today". 

    This causes performance issues. 

    Is there a way to cap events per request for the [stec] shortcode? 

    Perhaps a limit, like is available for the event lists? This is a critical issue for us. I submitted a ticket for this issue a month ago and have not heard anything in response.

    Attached files:  Screenshot STEC cal performans issues 2025-04-18 204852.png

  •  924
    Zhivko replied

    Try adding filter__min_date="start_of_today" as well.

    There is a planned refactor of the code that will have your issue on high priority.


    Stachethemes Developer

  •  1
    mvanderweide replied

    Thanks for the reply - I appreciate it!

    Unfortunately adding filter__min_date="start_of_today" does not solve the issue.

    What timeline are we looking at for the refactor of the code?

  •  924
    Zhivko replied

    I can't say say for sure just yet.

    The fetch events limit is too low ( 10 ) and with so many events it will take forever to load.

    Have you tried to increasing it ot something like 100:

    2505818631.png

    Have you checked the Site Health ( Dashboard -> Tools -> Site Healrth ) for problems especially with the database?


    Stachethemes Developer

  •  1
    mvanderweide replied

    I did have events fetch set at 100 previously, it didn't seem to matter. 

    I've put it back to 100 and now. 

    I've also just updated STEC to version 5.4.2  on my website, along with updating WordPress to Version 6.8.1 and I must say, the calendar is loading much faster now.