MDL-39526 cache: cleaned up disable_stores calls

This commit is contained in:
Sam Hemelryk 2013-05-09 15:32:36 +12:00
parent fa167c4ac3
commit 3993a37c20
2 changed files with 0 additions and 7 deletions

View File

@ -1391,9 +1391,6 @@ function get_config($plugin, $name = NULL) {
// install the database.
$siteidentifier = $DB->get_field('config', 'value', array('name' => 'siteidentifier'));
} catch (dml_exception $ex) {
// It's failed. We'll use this opportunity to disable cache stores so that we don't inadvertingly start using
// old caches. People should delete their moodledata dirs when reinstalling the database... but they don't.
cache_factory::disable_stores();
// Set siteidentifier to false. We don't want to trip this continually.
$siteidentifier = false;
throw $ex;

View File

@ -1467,10 +1467,6 @@ function install_core($version, $verbose) {
remove_dir($CFG->dataroot.'/muc', true);
try {
// Disable the use of cache stores here. We will reset the factory after we've performed the installation.
// This ensures that we don't permanently cache anything during installation.
cache_factory::disable_stores();
set_time_limit(600);
print_upgrade_part_start('moodle', true, $verbose); // does not store upgrade running flag