MDL-37683 cache: - Comments cleanup and remove ;;

This commit is contained in:
Damyon Wiese
2013-02-18 10:41:48 +08:00
parent b6f49c741d
commit 86c2bbd5f2
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -496,9 +496,9 @@ class cache_helper {
*/
public static function update_definitions($coreonly = false) {
global $CFG;
// Include locallib
// Include locallib.
require_once($CFG->dirroot.'/cache/locallib.php');
// First update definitions
// First update definitions.
cache_config_writer::update_definitions($coreonly);
// Second reset anything we have already initialised to ensure we're all up to date.
cache_factory::reset();
@@ -511,7 +511,7 @@ class cache_helper {
*/
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();
@@ -544,4 +544,4 @@ class cache_helper {
global $CFG;
return (string)$CFG->version;
}
}
}
+2 -2
View File
@@ -119,7 +119,7 @@ class cache_config_writer extends cache_config {
*/
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;
@@ -1008,4 +1008,4 @@ abstract class cache_administration_helper extends cache_helper {
}
return $locks;
}
}
}