MDL-59265 analytics: Remove dirroot from the model unique id
This was a bug, this would prevent sites with multiple frontend nodes from using the same model id.
This commit is contained in:
@@ -1194,7 +1194,7 @@ class model {
|
||||
|
||||
// Generate a unique id for this site, this model and this time splitting method, considering the last time
|
||||
// that the model target and indicators were updated.
|
||||
$ids = array($CFG->wwwroot, $CFG->dirroot, $CFG->prefix, $this->model->id, $this->model->version);
|
||||
$ids = array($CFG->wwwroot, $CFG->prefix, $this->model->id, $this->model->version);
|
||||
$this->uniqueid = sha1(implode('$$', $ids));
|
||||
|
||||
return $this->uniqueid;
|
||||
|
||||
Reference in New Issue
Block a user