-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Labels
[Component] Learn ThemeWebsite development issues related to the Learn theme.Website development issues related to the Learn theme.[Component] SenseiWebsite development issues related to the Sensei plugin installed on Learn.Website development issues related to the Sensei plugin installed on Learn.
Description
The learn theme makes uncached calls to get_courses_average_grade() in the Course sidebar that causes a rather slow SQL query on certain pages.
This is mostly visible with courses that have been attempted by a lot of users.
We should ideally:
- Cache the value on the post type (Either as postmeta, or in object cache)
- Either calculate the average on a cron (postmeta), or update it upon course completion (postmeta, object cache + ondemand)
- Switch to a stored Sensei meta value if one exists
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Component] Learn ThemeWebsite development issues related to the Learn theme.Website development issues related to the Learn theme.[Component] SenseiWebsite development issues related to the Sensei plugin installed on Learn.Website development issues related to the Sensei plugin installed on Learn.