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-13 10:03:00 +08:00
parent d07373f289
commit ddce4f4ba9
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();
}
/**