Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64470

A noticeable percent of the log store contents are calls to \core\event\webservice_function_called

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.4.6
    • Events API, Performance
    • MOODLE_34_STABLE

      We log a \core\event\webservice_function_called event every time a ws is called, the more JS-based UIs we have the more events we have, same for requests from the mobile app. Those events already represent a 2-digits percent of the standard log store table in some cases.

      This event was added in MDL-21127 (2010) and it does not even seem related to the issue's main purpose. People might be using it (incorrectly) to observe calls to ws functions. I don't know if the events2 API would allow events to be observed but not stored by the log stores layer. If it does not I would vote for just removing the event.

      jleyva proposed to add a setting to opt-out. A possible problem of the opt-out approach is that a sys admin may not know if any of the 3rd party plugins they installed is observing this event, so they would not know if they should keep the setting enabled. I may be ignoring other uses of the event.

      In any case we should ask the community about this.

            Unassigned Unassigned
            dmonllao David Monllaó
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.