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

get_many does not dereference objects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9.5, 3.0.3
    • 3.0.2
    • Caching

      When reviewing the caching code, I noticed that get_many and set_many don't do what get and set do to manage references. In most cachestores this is find as in reality dereferencing is done when storing. But it's not true for php memory based function.

      There were no unit tests that covered the object scenario with get_many. That was added and showed this error to be true. The code has been altered return dereferenced objects.

            mr-russ Russell Smith
            mr-russ Russell Smith
            Eric Merrill Eric Merrill
            Andrew Lyons Andrew Lyons
            cameron1729 cameron1729
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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