navigation MDL-24216 rebuild_course_cache now clears all navigation caches at the same time

This commit is contained in:
Sam Hemelryk 2010-09-15 08:33:00 +00:00
parent 12f701f173
commit 58d89c2467

View file

@ -1705,6 +1705,9 @@ function get_category_or_system_context($categoryid) {
function rebuild_course_cache($courseid=0, $clearonly=false) {
global $COURSE, $DB, $OUTPUT;
// Destroy navigation caches
navigation_cache::destroy_volatile_caches();
if ($clearonly) {
if (empty($courseid)) {
$courseselect = array();