MDL-12827 Saving a clone of the $record in the cache instead of the record itself, to avoid referencing
MDL-12827 Saving a clone of the $record in the cache instead of the record itself, to avoid referencing

dilawar/moodle