Skip to content

Commit

Permalink
Merge branch 'MDL-53947-30' of git://github.com/junpataleta/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_30_STABLE
  • Loading branch information
andrewnicols committed Jun 8, 2016
2 parents 0e6cbf1 + 8f62c06 commit e214b30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/classes/session/memcached.php
Expand Up @@ -136,7 +136,12 @@ public function init() {
ini_set('memcached.sess_locking', '1'); // Locking is required!

// Try to configure lock and expire timeouts - ignored if memcached is before version 2.2.0.
ini_set('memcached.sess_lock_max_wait', $this->acquiretimeout);
if (version_compare($version, '3.0.0-dev') >= 0) {
ini_set('memcached.sess_lock_wait_max', $this->acquiretimeout * 1000);
} else {
ini_set('memcached.sess_lock_max_wait', $this->acquiretimeout);
}

ini_set('memcached.sess_lock_expire', $this->lockexpire);
}

Expand Down

0 comments on commit e214b30

Please sign in to comment.