mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-37683 cache: siteidentifier is now included in the keys
This commit is contained in:
parent
1dd6835d8c
commit
e0d9b7c0d4
11 changed files with 140 additions and 12 deletions
10
cache/tests/fixtures/lib.php
vendored
10
cache/tests/fixtures/lib.php
vendored
|
@ -102,6 +102,16 @@ class cache_config_phpunittest extends cache_config_writer {
|
|||
'sort' => (int)$sort
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides the default site identifier used by the Cache API so that we can be sure of what it is.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_site_identifier() {
|
||||
global $CFG;
|
||||
return $CFG->wwwroot.'phpunit';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue