mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-38387 cache: fixed inifinite initialisation loop with site id
This commit is contained in:
parent
8673a98d1d
commit
17200a016d
2 changed files with 26 additions and 3 deletions
2
cache/locallib.php
vendored
2
cache/locallib.php
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue