Skip to content

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.

pkevan added a commit to WordPress/Learn that referenced this pull request May 13, 2025
Pending Automattic/sensei#7766, this adds some caching to the query.
pkevan added a commit to WordPress/Learn that referenced this pull request May 13, 2025
Pending Automattic/sensei#7766, this adds some caching to the query.
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