MDL-37683 cache: improved indentifier collection and storage

This commit is contained in:
Sam Hemelryk
2013-02-18 10:20:02 +13:00
parent e0d9b7c0d4
commit 7634410b6e
3 changed files with 42 additions and 21 deletions
-2
View File
@@ -204,7 +204,6 @@ class cache_factory {
// Get the class. Note this is a late static binding so we need to use get_called_class.
$definition = cache_definition::load_adhoc($mode, $component, $area, $options);
$config = $this->create_config_instance();
$definition->set_cache_identifier($config->get_site_identifier());
$definition->set_identifiers($identifiers);
$cache = $this->create_cache($definition, $identifiers);
if ($definition->should_be_persistent()) {
@@ -392,7 +391,6 @@ class cache_factory {
} else {
$definition = cache_definition::load($id, $definition, $aggregate);
}
$definition->set_cache_identifier($instance->get_site_identifier());
}
$this->definitions[$id] = $definition;
}