Skip to content
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

get_fast_modinfo once per course and caching it #162

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

rajandangi
Copy link
Contributor

This PR optimizes the reengagement_get_startusers function by loading the modinfo once per course and caching it to avoid multiple calls to get_fast_modinfo.

@danmarsden
Copy link
Member

I'd be surprised if this makes much of a difference to performance, but the code reads better and does the same thing so I'm happy to merge.

@danmarsden danmarsden merged commit 1fd61d6 into MOODLE_400_STABLE Jun 18, 2024
16 of 20 checks passed
@danmarsden danmarsden deleted the update/reengagement_get_startusers branch June 18, 2024 22:15
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.

2 participants