From 27edba5d10669a58a39e2d215acc7f9d2282eba5 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Mon, 23 Oct 2023 09:05:26 +0100 Subject: [PATCH] MDL-79619 core_message: Set instant messaging web service read-only Set the web service function core_message_send_instant_messages to use read-only sessions. This function can take a few seconds to process if it is sending messages to lots of users, and setting it to use read-only sessions will prevent it from blocking other requests. --- lib/db/services.php | 1 + version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/services.php b/lib/db/services.php index 2d61869478b..e1e7512a637 100644 --- a/lib/db/services.php +++ b/lib/db/services.php @@ -1477,6 +1477,7 @@ $functions = array( 'capabilities' => 'moodle/site:sendmessage', 'ajax' => true, 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE), + 'readonlysession' => true, ), 'core_message_send_messages_to_conversation' => array( 'classname' => 'core_message_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