From 78fdd789bd702856f9b62fea8201ad0d7d9fcfa8 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Fri, 30 Jun 2017 22:01:36 +0200 Subject: [PATCH] Improvement: Add really short keepalive intervals --- CHANGES.md | 4 ++++ settings.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index eae19f6..be58d5b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-local_session_keepalive Changes ------- +### Unreleased + +* 2017-06-30 - Improvement: Add really short keepalive intervals - Credits to Alexey Lustin + ### v3.2-r3 * 2017-05-19 - Bugfix: String in language pack didn't work for Moodle installed in subdirectories - Credits to David Mudrák diff --git a/settings.php b/settings.php index dd5c8cd..94d2799 100644 --- a/settings.php +++ b/settings.php @@ -45,7 +45,7 @@ 0)); // Create keepalive interval control widget. - $choices = array(10 => 10, 30 => 30, 60 => 60, 90 => 90, 120 => 120, 180 => 180, 240 => 240, 300 => 300); + $choices = array(1 => 1, 2 => 2, 5 => 5, 10 => 10, 30 => 30, 60 => 60, 90 => 90, 120 => 120, 180 => 180, 240 => 240, 300 => 300); $sessionhandlingurl = new \moodle_url('/admin/settings.php', array('section' => 'sessionhandling')); $link = \html_writer::link($sessionhandlingurl, get_string('sessionhandling', 'core_admin')); $sessiontimeoutmin = ($CFG->sessiontimeout / 60);