Scheduler gets slowly with more events

I am using Scheduler since a few months now. Every week I add 1 - 10 new events.
Is it possible, that scheduler needs noticeable more time to load all this events?

Should I delete older events to make scheduler faster? (I would prefer to leave them saved.)

Try to add the next lines in com_scheduler/scheduler_include.html

<script> scheduler.setLoadMode("month"); </script>

It must enable dynamic data loading. Scheduler will load only current month by default, data for other events will be loaded on demand.

So if I go back more than the current month, it won’t display the events anymore, right?

I’ll try it. It is better than deleting the events!

Thanks!

EDIT: doesn’t seem to work. these lines make all events disappear.

Hello,

No, with this option scheduler simply loads events for the ‘displaying’ month. Now if you move one month forward or backwards it will make additional queries to the database to fetch events for that time. This way we can make things a little bit easier for the database and reduce our loading time (as only required at the moment events will be loaded).

  1. Please remove those lines from the com_scheduler/scheduler_include.html file.
  2. Locate dhtmlxSchedulerConfigurator.php file.
  3. Find the following part in the file:

$scheduler .= " scheduler.init(\"scheduler_here\",null,\"".$defaultmode."\"); scheduler.load(\"".$loader_url."\"+scheduler.uid()); var dp = new dataProcessor(\"".$loader_url."\"+scheduler.uid()); dp.init(scheduler);";
Change it to:

$scheduler .= " scheduler.init(\"scheduler_here\",null,\"".$defaultmode."\"); scheduler.setLoadMode(\"month\"); scheduler.load(\"".$loader_url."\"+scheduler.uid()); var dp = new dataProcessor(\"".$loader_url."\"+scheduler.uid()); dp.init(scheduler);";
I hope it helps with your issue.

Best regards,
Ilya

Cool, this seems to work! Thank you!