Skip to content

Fix/course average query #7766

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
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Open

Fix/course average query #7766

wants to merge 4 commits into from

Conversation

pkevan
Copy link
Contributor

@pkevan pkevan commented Mar 6, 2025

Resolves #7765

Adds caching to expensive query - have tested on learn.wordpress.org, and can see improved page response time.

pkevan added 2 commits March 6, 2025 12:01
Adds caching to `get_courses_average_grade` to avoid excessive query time.
Copy link

github-actions bot commented Mar 6, 2025

Test the previous changes of this PR with WordPress Playground.

Copy link

github-actions bot commented Mar 6, 2025

Test the previous changes of this PR with WordPress Playground.

Copy link

github-actions bot commented Mar 6, 2025

Test the previous changes of this PR with WordPress Playground.

@pkevan
Copy link
Contributor Author

pkevan commented Mar 7, 2025

psalm tests seem to be failing due to HOUR_IN_SECONDS which is a WP constant, unsure what to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache result from get_courses_average_grade
1 participant