Fixing Slow LifterLMS Reporting and a Slow Admin on Large Sites

Why LifterLMS reporting screens, exports and admin pages slow down as enrollments grow, how to measure what is actually slow, and the fixes that work: updates, background processing, caching, settings, server sizing and targeted custom reports.

  • Add as a preferred source on Google
Illustration for “Fixing Slow LifterLMS Reporting and a Slow Admin on Large Sites”

Slow LifterLMS reporting is a sign of success. A site with a few hundred students loads its reports instantly. A few years and tens of thousands of enrollments later, the course students table takes ages, exports time out, the Users screen crawls and the WordPress dashboard feels heavy for everyone on the team.

This guide is for site owners and developers running LifterLMS at that scale. It explains where LifterLMS keeps its reporting data, how to find out what is slow before changing anything, and the fixes that work, from free settings changes to custom reporting. It focuses on the admin and reports. For front-end speed, see how to speed up a LifterLMS site.

Why LifterLMS reporting slows down

LifterLMS stores learning data in a few places, and each grows at its own rate:

  • The lifterlms_user_postmeta table holds enrollment status, lesson and course completions and similar per-student records. Every enrollment and every completed lesson adds rows. It is usually the largest LifterLMS table.
  • The lifterlms_quiz_attempts table stores every attempt with its questions and answers.
  • The lifterlms_events and lifterlms_lesson_time_sessions tables hold activity tracking and lesson time data.
  • Orders and transactions are WordPress posts with post meta, so sales reports depend on the size of the posts and postmeta tables.

Reports either read those tables directly, which gets slower as they grow, or read pre-calculated values. Course-level figures such as average progress, average grade and enrolled students are calculated by a background process and stored on the course, so they do not have to be worked out on every page load. When that background process does not run, the numbers go stale and screens that depend on them suffer.

Measure before you change anything

"Reporting is slow" can mean several different problems. Find out which one you have.

  1. Time the specific screens. List the screens people complain about: the course students table, the Students tab, a quiz's attempts, the Sales tab, a CSV export, the WordPress Users screen. Note how long each takes.
  2. Install Query Monitor on staging. The free Query Monitor plugin shows each page's database queries, flags slow and duplicate queries, and groups them by the plugin responsible. It quickly tells you whether the time is spent in LifterLMS, another plugin, or something else entirely.
  3. Check the server. Look at PHP memory and execution time limits, and ask your host for slow query logs. A database server that is simply too small for the data is a common root cause.
  4. Check background tasks. Go to LifterLMS > Status > Scheduled Actions and look for large numbers of pending or failed actions.

Measuring on a staging copy with production data is best. Reporting problems often do not appear on a staging site with a hundred test students.

Update LifterLMS first

Recent releases include specific reporting performance work, so an outdated install is the cheapest problem to fix. According to the changelog, LifterLMS 10.2.0:

  • Sorts the course students reporting table by student ID by default, instead of by name, "avoiding expensive name joins and filesorts on large sites".
  • Computes the Time in Course column with a single query per course and adds a lesson index to the time sessions table.
  • Stops course reports and exports from bulk-creating per-lesson time cache rows in user meta, and removes the zero-value rows previously created.
  • Counts the total for course and membership student exports once, instead of on every page, and honours a larger export page size.
  • Fixes several stale object cache values on sites using Redis or Memcached.

Update on staging, run any database update LifterLMS asks for, and re-time your slow screens before doing anything else.

Make sure background processing actually runs

LifterLMS relies on background tasks for course data calculations, delayed engagements, recurring payments and more. They run through WordPress's scheduled task system, which by default only runs when someone visits the site.

  • Use a real cron job. On busy or low-traffic sites alike, ask your host to trigger WordPress cron from the server every minute or few minutes, and disable the visitor-triggered version. Tasks then run on time without slowing page loads.
  • Clear stuck work. On LifterLMS > Status > Tools & Utilities, Delete processor batches removes pending batches from LifterLMS background processors, and Delete course data locks removes locks left by the course data processor. Use them when calculations are stuck, then let the processes run again.
  • Refresh cached progress. The Student Progress Cache tool's Clear cache button "Clears the cached data displayed on various reporting screens". It does not affect actual student progress, and the data is regenerated the next time it is accessed. Expect the first load afterwards to be slower.

Our article on recurring payments not processing covers scheduled task problems from the payments side.

Tuning the course data processor

For courses with 500 or more students, LifterLMS throttles the course data calculation so it runs at most once every four hours per course. Both numbers can be changed with filters. On a very large site you might reduce how often the heaviest courses are recalculated, accepting slightly older averages in exchange for less background load:

<?php
/**
 * Plugin Name: LLMSX Course Data Throttle
 */

// Throttle course data calculations for courses with 300+ students.
add_filter( 'llms_data_processor_course_data_throttle_count', 'llmsx_course_data_throttle_count' );
function llmsx_course_data_throttle_count( $number_students ) {
	return 300;
}

// Recalculate throttled courses at most every 12 hours.
add_filter( 'llms_data_processor_course_data_throttle_frequency', 'llmsx_course_data_throttle_frequency' );
function llmsx_course_data_throttle_frequency( $seconds ) {
	return 12 * HOUR_IN_SECONDS;
}

Change these only after measuring. If your problem is reports that are too slow to load, not background load, this filter will not help.

Add a persistent object cache

Many LifterLMS lookups use the WordPress object cache. Without a persistent backend, that cache is thrown away at the end of every request, so admin screens repeat the same queries over and over. Redis or Memcached, offered by most managed hosts, keeps those results between requests and often has the single biggest effect on admin speed.

Use a current LifterLMS version with it: the 10.2.0 changelog lists fixes for stale cached values under Redis and Memcached. Our guide to LifterLMS object caching with Redis covers setup and the pitfalls.

Settings and habits that reduce admin load

AreaWhat to changeWhy it helps
Reporting date rangesUse Last 7 Days or a short Custom range on the Sales and Enrollments tabsEach widget queries the whole range you choose
Large tablesSearch for the student or course you need instead of paging through everythingFewer rows, cheaper queries
ExportsRun large CSV exports outside peak hours, one at a timeExports page through every enrolled student
Frequency of Saving Tracked EventsKeep it at "Minimum" unless you need real-time accuracyThe setting's own description notes "Always" means "more server load"
Track Time on All LessonsLeave it off unless you report on time for every lessonTime tracking sends periodic requests from every open lesson
Users screenShow fewer users per page in Screen OptionsLifterLMS adds Last Login and Enrollments columns that are worked out per user row

Also check the WordPress dashboard itself. Every plugin can add widgets that run queries on every visit to the dashboard. Remove the ones nobody reads.

Server and database fixes

Once the application side is tidy, the remaining gains come from infrastructure:

  • Size the database for the data. Large LifterLMS tables need enough database memory to keep their indexes in memory. Ask your host what the database is allowed to use.
  • Use a current PHP version. Newer PHP versions run the same code noticeably faster.
  • Raise limits for exports only where needed. Long exports may need a longer PHP execution time, but treat that as a stopgap, not a fix.
  • Keep tables healthy. Expired sessions, old revisions and transient clutter add up. Clean them on a schedule with backups in place.

Be careful with custom database indexes. They can help specific reporting queries, but they should be designed against measured slow queries, tested on staging and documented, because a LifterLMS database update may need to account for them. For architecture-level changes, see scaling LifterLMS for large sites.

When built-in reports are the wrong tool

Sometimes the problem is not speed but what you are asking the screens to do. Paging through 40,000 students to answer "who in the Northern region has not finished compliance training" will always be slow and awkward. Better options:

  • A purpose-built report with one targeted query, cached and shown on a single admin page.
  • A scheduled export that writes a CSV overnight and emails it, so nobody waits for it during the day.
  • Pushing data out to a spreadsheet or business intelligence tool through the REST API or webhooks, so analysis happens outside WordPress. Our introduction to the LifterLMS REST API and webhooks explains the building blocks.

Frequently asked questions

Will clearing the student progress cache lose data?

No. The tool's own description says it does not affect actual student progress. It only clears cached values used on reporting screens, which are regenerated when next needed.

Why do course averages look out of date?

They are calculated in the background, and large courses are recalculated at most every four hours by default. If they never update, check that scheduled tasks are running.

How many students is too many for LifterLMS?

There is no fixed limit. Sites with very large numbers of enrollments run well with current versions, a persistent object cache, reliable cron and a properly sized database. Performance depends far more on hosting and reporting habits than on a student count.

Should I delete old quiz attempts or orders to speed things up?

Not as a first step. They are often needed for records, disputes or compliance. Fix caching, background tasks and server sizing first, and only archive data with an agreed retention policy.

What to do next

Update LifterLMS on staging, measure the slow screens with Query Monitor, confirm that scheduled tasks are running, and add a persistent object cache. On most large sites those four steps produce the biggest improvement.

If reports are still too slow, or you need reporting that the built-in screens were never designed for, our LifterLMS optimization service profiles your site with real data and fixes the bottlenecks, and builds targeted reports where they are the better answer. Get in touch with a list of the screens that hurt most.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day