sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Cache result from `get_courses_average_grade`

Open pkevan opened this issue 9 months ago • 0 comments

On large sites, the query resulting from get_courses_average_grade can result in excessive query time.

Caching the result of this query for 1hr (or longer) should be sufficient in reducing excessive load without necessarily reducing accuracy. A recalculation or removal of the cache value after completion of a course could be possible.

Example: https://learn.wordpress.org/course/beginner-wordpress-user/

pkevan avatar Mar 06 '25 10:03 pkevan