From ebe2c3c5cc663d18bb3b84094f71581f4fbf0931 Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Fri, 20 Oct 2023 15:09:04 +0100 Subject: [PATCH] MDL-79618 block_timeline: Set web services to read-only Set the web service functions core_calendar_get_action_events_by_timesort and core_calendar_get_action_events_by_timesort to use read only sessions. These functions can hold long session locks and read-only sessions will prevent them blocking other requests. --- lib/db/services.php | 2 ++ version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/db/services.php b/lib/db/services.php index 2d61869478b..dc9bc28bc04 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -228,6 +228,7 @@ $functions = array( 'capabilities' => 'moodle/calendar:manageentries, moodle/calendar:manageownentries, moodle/calendar:managegroupentries', 'ajax' => true, 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), + 'readonlysession' => true, ), 'core_calendar_get_action_events_by_course' => array( 'classname' => 'core_calendar_external', @@ -669,6 +670,7 @@ $functions = array( 'type' => 'read', 'ajax' => true, 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), + 'readonlysession' => true, ), 'core_course_get_recent_courses' => array( 'classname' => 'core_course_external', diff --git a/version.php b/version.php index 5c519ce9afb..ba6c1ea4c4e 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2023102700.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2023102700.01; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '4.4dev (Build: 20231027)'; // Human-friendly version name