Moodle Home Page (with login form) high initial server response time

Moodle Home Page (with login form) high initial server response time

by Federico Fiore -
Number of replies: 1

Hi to all,

I have an installation of moodle 3.11.2+ on a cluster with 2 servers with docker containers (apache + php 7.4 + php-fpm) (every server has 8 cpu, 12 GB ram) and SSD used for a Redis cache Server and for mariadb data. HAProxy as load balancer on a third server.
All is ok and fast but the home page (the root of my domain ex. www.mydomain.org) has a problem: about 4 seconds for initial server response time!!
For 3 seconds nothing happens and after 4 seconds finally the page get loaded in less than 1 seconds.

This is my Lighthouse Chrome report

Lighthouse Chrome result


But if I open www.mydomain.org/login this page get loaded instantly 😲

Why the home page (www.mydomain.org) with the similar content of login page (background image and login form) has 4 seconds of delay but login page (www.mydomain.org/login) not?

I have noticed also that in the home page get loaded (in the network tab of chrome developer tools) images and reseources (js, css) of the dashboard! Why?

Anyone can help me?

Average of ratings: -
In reply to Federico Fiore

Re: Moodle Home Page (with login form) high initial server response time

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
What does the Network tab of Chrome (or other) Developer Tools show?