Skip to content

Cache result from get_courses_average_grade #7765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pkevan opened this issue Mar 6, 2025 · 0 comments · May be fixed by #7766
Open

Cache result from get_courses_average_grade #7765

pkevan opened this issue Mar 6, 2025 · 0 comments · May be fixed by #7766
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug

Comments

@pkevan
Copy link
Contributor

pkevan commented Mar 6, 2025

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Triage Issue needs to be triaged [Type] Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant