MDL-40893 backup: cache question answers for performance
authorRussell Smith <mr-russ@smith2001.net>
Tue, 30 Jul 2013 06:00:57 +0000 (16:00 +1000)
committerRussell Smith <mr-russ@smith2001.net>
Fri, 16 Aug 2013 00:06:13 +0000 (10:06 +1000)
commit536e9be60584edb1185902018685b98bc11f6d5d
tree8ee624df0dd1817734f8420fe08eb651c59566e8
parent838d78a9ff4290e2bca304a5232204f04fc910ec
MDL-40893 backup: cache question answers for performance

To constrain memory we only cache a single question's answers.
A quiz must display this many answers, so it will not result
in undue memory pressure.

We now match on the full answer text rather than the first 255
characters.  This removes the risk of matching questions with the
same start.
backup/moodle2/restore_qtype_plugin.class.php