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

This commit is contained in:
nicolasconnault
2008-01-04 09:23:42 +00:00
parent 98348de3ae
commit 7dd512670b
+1 -1
View File
@@ -2583,7 +2583,7 @@ function rcache_set($table, $id, $rec) {
global $CFG, $MCACHE, $rcache;
if ($CFG->cachetype === 'internal') {
$rcache->data[$table][$id] = $rec;
$rcache->data[$table][$id] = fullclone($rec);
} else {
$key = $table . '|' . $id;