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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmonllao David Monllaó
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: