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

Partial course cache rebuild

    XMLWordPrintable

Details

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_32_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-55231-master
    • Hide

      php unit tests could cover most use cases, some manual tests to trigger course rebuild:

      Test case 1: Drag and drop files in course

      1. Log in as an editing teacher
      2. Click "Turn editing on"
      3. Drag a picture to the course page
      4. A resource module should be created named after the filename

      Test case 2:

      1. Log in as an editing teacher
      2. Create two page modules
      3. enable manual completion for the first page module
      4. enable access restriction for the second page module, make it available when first page is marked as done
      5. Log in as a student
      6. mark first page module as done
      7. make sure the second page module is available after that
      Show
      php unit tests could cover most use cases, some manual tests to trigger course rebuild: Test case 1: Drag and drop files in course Log in as an editing teacher Click "Turn editing on" Drag a picture to the course page A resource module should be created named after the filename Test case 2: Log in as an editing teacher Create two page modules enable manual completion for the first page module enable access restriction for the second page module, make it available when first page is marked as done Log in as a student mark first page module as done make sure the second page module is available after that
    • 0
    • Internationals - 4.0 Sprint 1, HQ Team International Sprint 2, HQ Team International Sprint 3, HQ Team International Sprint 4, HQ Team International Sprint 5, HQ Team International Sprint 6, HQ Team International Sprint 7, HQ Team International Sprint 8, HQ Team International Sprint 9, HQ Team International Sprin 10, HQ Team International CI H2-21

    Description

      When anything (sections or modules) is added/updated/deleted in a course, the whole course's cache is deleted and then rebuilt. A course cache build can take a while, it mostly depends of the number of module instances which implement MODNAME_get_coursemodule_info in the course.

      The idea is to allow a partial course cache rebuild. Updating/deleting a section/module will only invalidate the cache of the element. Then, only the cache of the element will be recalculated when needed.

      Attachments

        Issue Links

          Activity

            People

              dongsheng Dongsheng Cai
              viossat Mathieu Viossat
              Shamim Rezaie Shamim Rezaie
              Ilya Tregubov Ilya Tregubov
              Gladys Basiana Gladys Basiana
              Votes:
              12 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 week, 2 days, 7 hours, 17 minutes
                  1w 2d 7h 17m

                  Clockify

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