1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-14 04:52:36 +02:00

Merge branch '47608-28' of git://github.com/samhemelryk/moodle

This commit is contained in:
Dan Poltawski 2014-10-24 15:12:59 +01:00
commit 7638a4366f

@ -556,6 +556,9 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
}
$store = new cachestore_mongodb('Test mongodb', $configuration);
if (!$store->is_ready()) {
return false;
}
$store->initialise($definition);
return $store;
@ -581,6 +584,9 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
$configuration['usesafe'] = 1;
$store = new cachestore_mongodb('Test mongodb', $configuration);
if (!$store->is_ready()) {
return false;
}
$store->initialise($definition);
return $store;