Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions config/moodle/remote.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
$CFG->enablecssoptimiser = 1;

// $CFG->session_redis_host = 'redis';
$CFG->session_redis_host = $_SERVER['REDIS_HOST'];
// $CFG->session_redis_host = $_SERVER['REDIS_HOST'];
// $CFG->session_redis_auth = $_SERVER['REDIS_PASSWORD'];
$CFG->session_handler_class = '\core\session\redis';
// $CFG->session_handler_class = '\core\session\redis';
// $CFG->session_handler_class = '\core\session\file';
$CFG->session_redis_port = 6379; // Optional if TCP. For socket use -1
$CFG->session_redis_database = 0; // Optional, default is db 0.
$CFG->session_redis_acquire_lock_timeout = 120;
$CFG->session_redis_lock_expire = 7200;
$CFG->session_redis_serializer_use_igbinary = true;
$CFG->session_redis_compressor = 'gzip';
// $CFG->session_redis_port = 6379; // Optional if TCP. For socket use -1
// $CFG->session_redis_database = 0; // Optional, default is db 0.
// $CFG->session_redis_acquire_lock_timeout = 120;
// $CFG->session_redis_lock_expire = 7200;
// $CFG->session_redis_serializer_use_igbinary = true;
// $CFG->session_redis_compressor = 'gzip';

// filecache should be on LOCAL fast storage
$CFG->filecache = '/mnt/ramdisk/filecache';
Expand Down Expand Up @@ -159,4 +159,4 @@ function loadTestCacheDisk($size_in_mb = 1, $num_files = 1) {
}

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
// it is intentional because it prevents trailing whitespace problems!
Loading