MDL-55628 Completion: Use simpledata for completion cache
authorsam marshall <s.marshall@open.ac.uk>
Fri, 19 Aug 2016 11:56:42 +0000 (12:56 +0100)
committersam marshall <s.marshall@open.ac.uk>
Mon, 22 Aug 2016 16:13:36 +0000 (17:13 +0100)
commit5c2ef08fa3b7a38c4b1498b6212728ab2e4c11ed
tree91910e75fb4ee88937ec0df399b4d0b1d4c62999
parent3ca3cc77a27aa838a24a33eb461b8be3e5ba8fa3
MDL-55628 Completion: Use simpledata for completion cache

The completion cache is currently not marked as simpledata. On the
course page it is frequently retrieved hundreds of times which results
in many calls to the slow unserialize function. By making a slight
change to the data format (using arrays instead of objects) we can
mark it as simpledata, which will avoid using unserialize.
lib/completionlib.php
lib/db/caches.php
lib/tests/completionlib_test.php