MDL-56348 cache: Removed second parameter

There is no second parameter in the api
and identifier should be set by set_identifiers
This commit is contained in:
Rajesh Taneja
2016-10-11 12:50:10 +08:00
parent d9520bc04e
commit ca9a79dae3
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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;
}