MDL-38387 cache: fixed inifinite initialisation loop with site id
This commit is contained in:
Vendored
+2
@@ -529,10 +529,12 @@ class cache_config_writer extends cache_config {
|
||||
* Update the site identifier stored by the cache API.
|
||||
*
|
||||
* @param string $siteidentifier
|
||||
* @return string The new site identifier.
|
||||
*/
|
||||
public function update_site_identifier($siteidentifier) {
|
||||
$this->siteidentifier = md5((string)$siteidentifier);
|
||||
$this->config_save();
|
||||
return $this->siteidentifier;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user