mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-39526 cache: cleaned up disable_stores calls
This commit is contained in:
parent
fa167c4ac3
commit
3993a37c20
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user