mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
navigation MDL-24216 rebuild_course_cache now clears all navigation caches at the same time
This commit is contained in:
parent
12f701f173
commit
58d89c2467
1 changed files with 3 additions and 0 deletions
|
@ -1705,6 +1705,9 @@ function get_category_or_system_context($categoryid) {
|
||||||
function rebuild_course_cache($courseid=0, $clearonly=false) {
|
function rebuild_course_cache($courseid=0, $clearonly=false) {
|
||||||
global $COURSE, $DB, $OUTPUT;
|
global $COURSE, $DB, $OUTPUT;
|
||||||
|
|
||||||
|
// Destroy navigation caches
|
||||||
|
navigation_cache::destroy_volatile_caches();
|
||||||
|
|
||||||
if ($clearonly) {
|
if ($clearonly) {
|
||||||
if (empty($courseid)) {
|
if (empty($courseid)) {
|
||||||
$courseselect = array();
|
$courseselect = array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue