Why Is Moodle Slow? A Diagnosis Guide for Universities

Find the cause of a slow Moodle site before buying hardware: measure first, then check caching, PHP, database, cron, plugins and exam load in order.

Why Is Moodle Slow? A Diagnosis Guide for Universities – ITCadence guide
Short answer

Why is Moodle slow?

Common causes are caches stored on slow disk, PHP not tuned, an overloaded database, scheduled tasks running at busy times, heavy plugins and too little capacity for timed exams. Measure one slow page first, so you fix the layer that is responsible.

"Moodle is slow" can mean six different things. Ten minutes of narrowing down saves days of guessing.

Describe it precisely

PatternLook first at
Every page, all dayPHP, caching, network
One courseCourse size, blocks, plugins, gradebook
One activity typeThat plugin and its queries
Same time each dayScheduled tasks, backups
Exams onlyConcurrency: PHP workers, database, sessions
Off campus onlyNetwork, proxy, content delivery
After an upgradeBackground conversion tasks, caches, plugins

Step 1: measure

Moodle's performance documentation advises getting a baseline before any change. Choose three pages: the dashboard, a large course and a quiz. Record server time, database query count and full load time, at a quiet and a busy moment.

Step 2: caching

By default many caches are on disk. Moving suitable ones to memory can help a great deal. Check:

  • PHP OPcache is on and has enough memory
  • Application and session caches use suitable stores
  • Theme designer mode and debugging are off in production
  • Cache data is not on slow shared storage

Step 3: PHP and web server

Too few PHP workers makes users queue. Too many exhausts memory. Use measured memory for each process to set the limit, and leave room for the operating system.

Step 4: database

Turn on the slow query log and look for repeated or long queries. Check memory, disk delay, indexes and connection limits. If the database is on the same server as the web service, see which is taking resources.

Step 5: scheduled tasks

Cron should run frequently and finish. A backlog delays email, completion and grade updates. Move course backups and large syncs away from teaching hours, and look for one task that blocks the rest.

Step 6: plugins and course design

Disable suspects on a copy, one at a time. Check dashboards that load data from every course, large embedded media and gradebooks with complex formulas. Uploaded video is usually better on a video platform.

Step 7: exams

  1. Estimate students starting in the same minute.
  2. Test that load on a copy, including saving answers.
  3. Stagger start times where policy allows.
  4. Pause heavy scheduled tasks.
  5. Have a named person watching, and a plan if it fails.

What improvement can look like

Moodle's case study of Ajman University reports 30–50% faster page loads and 15–20% better database efficiency after optimisation with its partner. It is a vendor story and your numbers will differ, but it shows what tuning can achieve without changing platform.

Change one thing at a time

Keep a log: date, change, expected effect, measured result. Undo changes that do not help. If you run an unsupported version, plan the upgrade as well. If the host itself is the limit, compare hosting options.

Sources

Frequently asked questions

Only if the server is the limit. A bad query, slow file storage or a heavy plugin can stay slow on larger hardware.

Moodle's documentation recommends Redis among its caching options. It often helps busy sites, especially with several web servers, but measure before and after.

Many students load, save and submit at the same moments. That stresses the database, sessions and PHP workers far more than normal browsing.

#Moodle#performance#troubleshooting#caching#e-learning

Last updated by ITCadence. Product capabilities vary by version and licence; confirm details against current vendor documentation.

ITCadence Banner TeamEllucian Banner and e-learning specialists, Dubai. Need help with this?
Banner issue right now?Chat with ITCadence support