-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.2
-
MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
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.