Merge branch 'wip-MDL-38541-m23' of git://github.com/marinaglancy/moodle into MOODLE_23_STABLE
This commit is contained in:
@@ -1279,6 +1279,12 @@ function get_fast_modinfo(&$course, $userid=0) {
|
||||
function rebuild_course_cache($courseid=0, $clearonly=false) {
|
||||
global $COURSE, $DB, $CFG;
|
||||
|
||||
if (!$clearonly && !empty($CFG->upgraderunning)) {
|
||||
debugging('Function rebuild_course_cache() should not be called from upgrade script unless with argument clearonly.',
|
||||
DEBUG_DEVELOPER);
|
||||
$clearonly = true;
|
||||
}
|
||||
|
||||
// Destroy navigation caches
|
||||
navigation_cache::destroy_volatile_caches();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user