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

Adapt component_callback_exists to make use of plugin_functions cache definition

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Caching
    • Labels:
      None
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      Not sure of how would be the performance impact but sometimes we just need to know if the callback exist, not execute it (we would require to include the file with the callback for that) so would be better to read the cache instead of a big lib.php file or any other big lib file. I thought about it last week while reviewing something, now I see it again used in grade_item::adjust_raw_grade, although doing a git grep component_callback_exists I don't see as much uses of it as I thought.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              dmonllao David Monllaó
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: