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

cleanup and improve enrolment caching

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1
    • 2.2
    • Enrolments
    • None
    • MOODLE_21_STABLE
    • MOODLE_22_STABLE
    • w44_MDL-30131_m22_enrolcaching
    • Hide

      1/ self enrol user into course
      2/ open other browser and start changing things (add more enrols, enable disable enrol instances and plugins, etc.)
      3/ verify the changes are reflected in the other browser with test user

      Show
      1/ self enrol user into course 2/ open other browser and start changing things (add more enrols, enable disable enrol instances and plugins, etc.) 3/ verify the changes are reflected in the other browser with test user

    Description

      this includes:

      • require_login()
      • is_enrolled()
      • any place that changes enrolments (reseting of caches)

      Benefits:

      • performance - fewer db queries from is_enrolled()
      • reliability - when somebody modifies enrolments require_login() should know it immediately
      • code easier to understand
      • more comments and explanantion

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              skodak Petr Skoda
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Jason Fowler Jason Fowler
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5/Dec/11