Installing moodle with memcache for session

Installing moodle with memcache for session

by Ignacio Vasconcello -
Number of replies: 0

Hi, 

I've been working in this instances for a while.

I'm trying to use Elasticache for the sessions in moodle 3.9, when I have the session memcache path activate, the session time out constantly the session in the website, but when I use the normal way this works fine.

any expirience working on that?

$SessionEndpoint = 'xxxxxxxxxxxxxxxxx.use1.cache.amazonaws.com:11211';  

$CFG->dbsessions = false;

$CFG->session_handler_class = '\core\session\memcached';

$CFG->session_memcached_save_path = $SessionEndpoint;

$CFG->session_memcached_prefix = 'memc.sess.key.';

$CFG->session_memcached_acquire_lock_timeout = 120;

$CFG->session_memcached_lock_expire = 7200;

$CFG->session_memcached_lock_retry_sleep = 150;

Average of ratings: -