Moodle is very slow only on course page and resources.

Re: Moodle is very slow only on course page and resources.

by Benjamin Cabassot -
Number of replies: 9

Hey !

I have the same issue since i switched from Moodle 3.5 to Moodle 3.9.3 and switching the theme, to adaptable.

What is the theme your using ? it seems that for me it goes faster when iam using other theme than Adaptable.

My course contain SCORM, Forum, Test, Certificat, ressources and some links. Also there are a lot of students matriculated, more than 2000. I dont know if it is slower because of that .. Do you know?

Also i noticed that on some courses it goes fast, and some other, it goes slow (more than 15s). And it seems for now, that the only difference between a slow and a fast course is the number of student matriculated. Even if with other theme, i dont have this issue.

If you have any ideas about how to fix it, pls let me know.

Thanks,

Best regardsm


 

In reply to Benjamin Cabassot

Re: Moodle is very slow only on course page and resources.

by Andrew Molteno -
Hi Benjamin
Did you find a solution? I have the same issue with Moodle 3.9.3 and Adaptable theme 3.0.4. Some course sections load slowly for teachers (5+ seconds) while students on the same course experience faster load times (1.5s). This is consistent. I use OneTopic and in my case have found that the topics with lesson or feedback activities are affected.
The issue does not present when changing to Classic theme.

Regards
Andrew
In reply to Andrew Molteno

Re: Moodle is very slow only on course page and resources.

by Jean-François Lemoine -
Hi,

About Adaptable 3.

  • Does it impact only teachers, and not students?
  • Do you have more than a few thousand students enroled in the course?
If your answer is yes to both, you may have encountered a limit in course_participant_count(). In september this function have been rewrote to be more accurate, but slower.

Regards.
Jean-François
Average of ratings: Useful (1)
In reply to Andrew Molteno

Re: Moodle is very slow only on course page and resources.

by Benjamin Cabassot -
Hi Andrew,

Our institution and ourMoodle Partner did not find a solution.
So to allow the best user experience, we switch to Fordson theme.
I think that the anwser of Jean-François, can be the origin of the issue.

Best regards,
In reply to Benjamin Cabassot

Re: Moodle is very slow only on course page and resources.

by Andrew Molteno -
Hi @Benjamin, thanks for the update.
@Jean-François, yes, only teachers, not students. However this affects courses even with 100 students.

Regards
In reply to Andrew Molteno

Re: Moodle is very slow only on course page and resources.

by Jean-François Lemoine -

Here is an easy and safe way to verify if it’s the problem I was talking about:

  • Got to /admin/settings.php?section=theme_adaptable_course
  • In section Course page further information uncheck all the herebellow settings:
    • coursesectionactivityfurtherinformationassign
    • coursesectionactivityfurtherinformationquiz
    • coursesectionactivityfurtherinformationchoice
    • coursesectionactivityfurtherinformationfeedback
    • coursesectionactivityfurtherinformationlesson
    • coursesectionactivityfurtherinformationdata

Does it solve your problem?

Average of ratings: Useful (2)
In reply to Jean-François Lemoine

Re: Moodle is very slow only on course page and resources.

by Jean-François Lemoine -
Sorry, since 3.0.2, this settings’ page can be found at:
/admin/settings.php?section=themesettingadaptable#theme_adaptable_course
Average of ratings: Useful (1)
In reply to Jean-François Lemoine

Re: Moodle is very slow only on course page and resources.

by Andrew Molteno -
Thanks Jean-François, disabling those settings had a significant impact on load times. Do you know what the effect of disabling these options are when loading the course section? e.g. for assignment the description states "Show assignment information, such as due date, submission status. For teachers / admins, show number of submissions.". That information is still available when selecting the assignment, either as student or teacher.
Average of ratings: Useful (1)
In reply to Andrew Molteno

Re: Moodle is very slow only on course page and resources.

by Andrew Molteno -
Hi Jean-François, ignore that, I see it on the course page, under the activity, thanks again.
In reply to Andrew Molteno

Re: Moodle is very slow only on course page and resources.

by Jean-François Lemoine -

Hi Andrew,

Yes no side effect, except the removal of a very interesting piece of information.

The “faulty” commit can be found here:
https://gitlab.com/jezhops/moodle-theme_adaptable/-/commit/0bb920b70e9f433288b0ed62b947e81d972b871b

I use quotation marks to “faulty” because the new code is more accurate than the previous one, but it’s also a lot slower.

I tried to raise an issue, to no end. I finally reverted back the function course_participant_count() (and its calling).

Regards.
Jean-François