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

get_my_courses caching issues

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2, 1.8
    • Fix Version/s: 1.7.3, 1.8.1, 1.9
    • Component/s: Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      We current cache my courses using $USER->mycourses. However, this is not sufficient because the calendar checks course:view with $doanything set to true, and my moodle or the course block (and pretty much everything else) checks course:view with $doanything set to false. These 2 result set can be different. So we need 2 sets of caches.

        Attachments

          Activity

            People

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

              Dates

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