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

question bank should not store references to MUC cache

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.4, 2.6
    • Fix Version/s: 2.5.5, 2.6.2, 2.7
    • Component/s: Questions
    • Labels:
    • Story Points (Obsolete):
      2
    • Sprint:
      BACKEND Sprint 8

      Description

      MUC cache instances are cached internally, developers are expected to not store references to the cache returned from cache::make() because it breaks some types of MUC resets and probably when using different $identifiers parameter.

      I discovered this the hard way when hacking MUC in phpunit, the questions tests started breaking badly because of the $this->cache = cache::make('core', 'questiondata'); in question/engine/bank.php

      I was bitten by similar problem previously in dml drivers too...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14