-
Notifications
You must be signed in to change notification settings - Fork 6
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
MBS-8702: Improve caching #93
Conversation
3500067
to
687e7db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments in the code
687e7db
to
9ba6ca0
Compare
9ba6ca0
to
ff95cac
Compare
'callback' => '\mod_learningmap\autoupdate::reset_backlink_cache', | ||
'callback' => '\mod_learningmap\autoupdate::reset_backlink_cache_if_necessary', | ||
], | ||
[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment that this is needed in case the course format changed. Maybe it would also be nice to make a separate callback function handling this event because it should be possible to extract if the event actually was caused by a course format change?
Currently the cache is rebuilt on every course update, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing it turns out that only one link is being generated, even if an activity belongs to two learningmaps. Can you confirm?
Also: Is it intentional that there is a backlink shown despite the activity is not yet accessible to the student?
backlink config was not present in backup routine, fixed
Yes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Happy to merge!
No description provided.