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

Improve the get_my_courses() behaviour

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2, 1.9
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Current get_my_courses() implementation can perform a bit better caching:

      1) Modify get_my_courses to ALWAYS fetch (an cache) ALL the user courses and return from cache respecting limit. -> Yu
      2) Modify the my/index.php call to add the modinfo field (won't use the cache, obviously) -> Eloy
      3) Modify as many get_my_courses() calls to use the default fields (because they are cached) -> Eloy

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lazyfish Yu Zhang
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Oct/07