Web service function called The web service function 'core_message_get_messages' has been called.

Re: Web service function called The web service function 'core_message_get_messages' has been called.

by Dani Palou -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi,

are those 16000 events for the same user? The app can call this WS quite a lot if the user has the discussion open in the app because we try to fetch the messages every 10 seconds, but 16000 in 10 hours sounds too much (it's more than 25 calls per minute!).

In Moodle 3.6 the messaging system was improved and the amount of WS calls needed when viewing a discussion was reduced, maybe that can help you reduce the number of WS calls.

You can disable the messaging in the app using the Moodle mobile additional features plugin. Install the plugin, go to "Site administration > Plugins > Local plugins > Moodle Mobile additional features > Disabled features" and select these options:

Main menu: Messages
User: Send message

Please notice that users won't be able to view or send messages in the app after changing this, they'll have to do it in browser.

Cheers,
Dani