MDL-43349 cache: added back are_requirements_met calls

This commit is contained in:
Sam Hemelryk
2014-01-09 23:02:14 +01:00
committed by Eloy Lafuente (stronk7)
parent 305e60a5e2
commit c2dc13a017
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -274,7 +274,8 @@ class cache_factory {
}
/* @var cache_store $store */
$store = $this->stores[$name];
if (!$store->is_ready() || !$store->is_supported_mode($definition->get_mode())) {
// We check are_requirements_met although we expect is_ready is going to check as well.
if (!$store::are_requirements_met() || !$store->is_ready() || !$store->is_supported_mode($definition->get_mode())) {
return false;
}
// We always create a clone of the original store.