Skip to content

Commit

Permalink
MDL-37683 cache: - Comments cleanup and remove ;;
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese committed Feb 18, 2013
1 parent cd74787 commit 7866b09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cache/classes/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public static function hash_key($key, cache_definition $definition) {
*/
public static function update_definitions($coreonly = false) {
global $CFG;
// Include locallib
// Include locallib.
require_once($CFG->dirroot.'/cache/locallib.php');
// First update definitions
cache_config_writer::update_definitions($coreonly);
Expand All @@ -511,7 +511,7 @@ public static function update_definitions($coreonly = false) {
*/
public static function update_site_identifier($siteidentifier) {
global $CFG;
// Include locallib
// Include locallib.
require_once($CFG->dirroot.'/cache/locallib.php');
$factory = cache_factory::instance();
$factory->updating_started();
Expand Down Expand Up @@ -544,4 +544,4 @@ public static function get_site_version() {
global $CFG;
return (string)$CFG->version;
}
}
}
4 changes: 2 additions & 2 deletions cache/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function config_save() {
*/
protected function generate_configuration_array() {
$configuration = array();
$configuration['siteidentifier'] = $this->siteidentifier;;
$configuration['siteidentifier'] = $this->siteidentifier;
$configuration['stores'] = $this->configstores;
$configuration['modemappings'] = $this->configmodemappings;
$configuration['definitions'] = $this->configdefinitions;
Expand Down Expand Up @@ -1012,4 +1012,4 @@ public static function get_lock_summaries() {
}
return $locks;
}
}
}
4 changes: 2 additions & 2 deletions lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1394,8 +1394,8 @@ 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 oppertunity to disable cache stores so that we don't inadvertingly start using
// old caches. People should delete there moodledata dirs when reinstalling the database... but they don't.
// 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;
Expand Down

0 comments on commit 7866b09

Please sign in to comment.