mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-70309 libraries: upgrade mongodb integration files
This commit is contained in:
parent
4b948f8a50
commit
e161edc97a
2
cache/stores/mongodb/lib.php
vendored
2
cache/stores/mongodb/lib.php
vendored
@ -158,7 +158,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable {
|
||||
* @return bool
|
||||
*/
|
||||
public static function are_requirements_met() {
|
||||
return version_compare(phpversion('mongodb'), '1.5', 'ge');
|
||||
return version_compare(phpversion('mongodb'), '1.8', 'ge');
|
||||
}
|
||||
|
||||
/**
|
||||
|
3
cache/stores/mongodb/readme_moodle.txt
vendored
3
cache/stores/mongodb/readme_moodle.txt
vendored
@ -7,5 +7,6 @@ Import procedure:
|
||||
- Copy all the files and folders from the folder mongodb/src in the cache/stores/mongodb/MongoDB directory.
|
||||
- Copy the license file from the project root.
|
||||
- Update thirdpartylibs.xml with the latest version.
|
||||
- Check the minim php driver version in https://docs.mongodb.com/drivers/php#compatibility and change the value in the "are_requirements_met" method if necessary.
|
||||
|
||||
This version (1.5.1) requires PHP mongodb extension >= 1.6.0
|
||||
This version (1.8.0) requires PHP mongodb extension >= 1.8.0
|
||||
|
2
cache/stores/mongodb/thirdpartylibs.xml
vendored
2
cache/stores/mongodb/thirdpartylibs.xml
vendored
@ -4,7 +4,7 @@
|
||||
<location>MongoDB</location>
|
||||
<name>MongoDB PHP Library</name>
|
||||
<license>Apache</license>
|
||||
<version>1.5.1</version>
|
||||
<version>1.8.0</version>
|
||||
<licenseversion>2.0</licenseversion>
|
||||
</library>
|
||||
</libraries>
|
Loading…
x
Reference in New Issue
Block a user