mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'wip-mdl-56348' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
b3a089e864
4
cache/classes/factory.php
vendored
4
cache/classes/factory.php
vendored
@ -198,7 +198,7 @@ class cache_factory {
|
||||
}
|
||||
$definition = $this->create_definition($component, $area);
|
||||
$definition->set_identifiers($identifiers);
|
||||
$cache = $this->create_cache($definition, $identifiers);
|
||||
$cache = $this->create_cache($definition);
|
||||
// Loaders are always held onto to speed up subsequent requests.
|
||||
$this->cachesfromdefinitions[$definitionname] = $cache;
|
||||
return $cache;
|
||||
@ -227,7 +227,7 @@ class cache_factory {
|
||||
}
|
||||
$definition = cache_definition::load_adhoc($mode, $component, $area, $options);
|
||||
$definition->set_identifiers($identifiers);
|
||||
$cache = $this->create_cache($definition, $identifiers);
|
||||
$cache = $this->create_cache($definition);
|
||||
$this->cachesfromparams[$key] = $cache;
|
||||
return $cache;
|
||||
}
|
||||
|
6
cache/disabledlib.php
vendored
6
cache/disabledlib.php
vendored
@ -213,7 +213,8 @@ class cache_factory_disabled extends cache_factory {
|
||||
*/
|
||||
public function create_cache_from_definition($component, $area, array $identifiers = array(), $unused = null) {
|
||||
$definition = $this->create_definition($component, $area);
|
||||
$cache = $this->create_cache($definition, $identifiers);
|
||||
$definition->set_identifiers($identifiers);
|
||||
$cache = $this->create_cache($definition);
|
||||
return $cache;
|
||||
}
|
||||
|
||||
@ -233,7 +234,8 @@ class cache_factory_disabled extends cache_factory {
|
||||
*/
|
||||
public function create_cache_from_params($mode, $component, $area, array $identifiers = array(), array $options = array()) {
|
||||
$definition = cache_definition::load_adhoc($mode, $component, $area);
|
||||
$cache = $this->create_cache($definition, $identifiers);
|
||||
$definition->set_identifiers($identifiers);
|
||||
$cache = $this->create_cache($definition);
|
||||
return $cache;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user