MDL-58136 cache: Add a course completion cache

The last change added 1 db read per course per page which is not OK. Add a cache to compensate.
This commit is contained in:
Damyon Wiese
2017-06-12 16:11:52 +08:00
parent 11127354db
commit 4d26fcd737
5 changed files with 38 additions and 5 deletions
+2
View File
@@ -769,6 +769,7 @@ class completion_info {
// Difficult to find affected users, just purge all completion cache.
cache::make('core', 'completion')->purge();
cache::make('core', 'coursecompletion')->purge();
}
/**
@@ -820,6 +821,7 @@ class completion_info {
// Difficult to find affected users, just purge all completion cache.
cache::make('core', 'completion')->purge();
cache::make('core', 'coursecompletion')->purge();
}
/**