Skip to content

Commit

Permalink
MDL-36612 upgrade: Force courses cache to be rebuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Nov 15, 2012
1 parent 211f815 commit 9b835f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -1465,6 +1465,14 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2012111200.00);
}

if ($oldversion < 2012111200.01) {
// Force the rebuild of the cache of every courses, some cached information could contain wrong icon references.
rebuild_course_cache();

// Main savepoint reached.
upgrade_main_savepoint(true, 2012111200.01);
}


return true;
}
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();


$version = 2012111200.00; // YYYYMMDD = weekly release date of this DEV branch
$version = 2012111200.01; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes

Expand Down

0 comments on commit 9b835f7

Please sign in to comment.