mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-45412 Cache: Look for the newer classname first (mongo store)
This commit is contained in:
parent
87f7ae9c46
commit
7c6f2e29ae
2
cache/stores/mongodb/lib.php
vendored
2
cache/stores/mongodb/lib.php
vendored
@ -166,7 +166,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
|
||||
* @return bool
|
||||
*/
|
||||
public static function are_requirements_met() {
|
||||
return class_exists('Mongo');
|
||||
return class_exists('MongoClient') || class_exists('Mongo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user