MDL-43349 cache: added back are_requirements_met calls
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
305e60a5e2
commit
c2dc13a017
Vendored
+2
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user