mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-57572 redis: Prevent installation to fail on sites without redis
This commit is contained in:
parent
7bdbad80d8
commit
e238dcc8b2
3
cache/stores/redis/settings.php
vendored
3
cache/stores/redis/settings.php
vendored
@ -35,6 +35,8 @@ $settings->add(
|
||||
)
|
||||
);
|
||||
|
||||
if (class_exists('Redis')) { // Only if Redis is available.
|
||||
|
||||
$options = array(Redis::SERIALIZER_PHP => get_string('serializer_php', 'cachestore_redis'));
|
||||
|
||||
if (defined('Redis::SERIALIZER_IGBINARY')) {
|
||||
@ -49,3 +51,4 @@ $settings->add(new admin_setting_configselect(
|
||||
$options
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user