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

cleanup and improve enrolment caching

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2
    • 2.1
    • 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

      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

            skodak Petr Skoda
            skodak Petr Skoda
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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