diff --git a/cache/classes/helper.php b/cache/classes/helper.php index 1f0aeddee81..e1c0ba7aeba 100644 --- a/cache/classes/helper.php +++ b/cache/classes/helper.php @@ -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; } -} \ No newline at end of file +} diff --git a/cache/locallib.php b/cache/locallib.php index acfdcd82a20..3a28bd40d8c 100644 --- a/cache/locallib.php +++ b/cache/locallib.php @@ -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; } -} \ No newline at end of file +}