Skip to content

Commit

Permalink
Merge branch 'wip-MDL-39526-m25-p2' of git://github.com/samhemelryk/m…
Browse files Browse the repository at this point in the history
…oodle
  • Loading branch information
Damyon Wiese committed May 13, 2013
2 parents 55848bc + 24dedb9 commit 8b4c865
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/upgradelib.php
Expand Up @@ -1299,6 +1299,12 @@ function upgrade_finished($continueurl=null) {

if (!empty($CFG->upgraderunning)) {
unset_config('upgraderunning');
// We have to forcefully purge the caches using the writer here.
// This has to be done after we unset the config var. If someone hits the site while this is set they will
// cause the config values to propogate to the caches.
// Caches are purged after the last step in an upgrade but there is several code routines that exceute between
// then and now that leaving a window for things to fall out of sync.
cache_helper::purge_all(true);
upgrade_setup_debug(false);
ignore_user_abort(false);
if ($continueurl) {
Expand Down

0 comments on commit 8b4c865

Please sign in to comment.