MDL-37683 cache: - Comments cleanup and remove ;;
This commit is contained in:
Vendored
+4
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user