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

Cache: Locking does not work when store supports multiple identifiers

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76791-m401
    • MDL-76791-master
    • Hide

      There is nowhere in standard Moodle (except the unit test) that will actually use the problematic situation at present (unless you really want to configure MongoDB with the extended mode setting, which I think is not really necessary to test this). I suggest the following tests are sufficient:

      Automated testing:

      1. Confirm that the unit tests pass. The newly-added test function covers this behaviour and did fail before this fix.

      Manual testing:

      1. Visit Site administration / Developer / Purge caches and click Purge all caches; this ensures course modinfo will be rebuilt on the next step.
      2. Visit a course page - this will confirm that modinfo cache (which uses the locking mechanism) has not been broken by the change.
      Show
      There is nowhere in standard Moodle (except the unit test) that will actually use the problematic situation at present (unless you really want to configure MongoDB with the extended mode setting, which I think is not really necessary to test this). I suggest the following tests are sufficient: Automated testing: Confirm that the unit tests pass. The newly-added test function covers this behaviour and did fail before this fix. Manual testing: Visit Site administration / Developer / Purge caches and click Purge all caches ; this ensures course modinfo will be rebuilt on the next step. Visit a course page - this will confirm that modinfo cache (which uses the locking mechanism) has not been broken by the change.

      The cache locking feature added in Moodle 4.1 does not work if the cache store supports multiple identifiers (supported by cachestore_static and, if configured to 'extended mode', cachestore_mongodb).

      This is related to issues with the temporary cache feature during installation introduced in 4.2, which uses cachestore_static. See MDL-76784.

            quen Sam Marshall
            quen Sam Marshall
            Mark Johnson Mark Johnson
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 34 minutes
                34m

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