Improving performance
Spent the last couple of days trying to improve the performance of the MSG Moodle block – seems to be going ok, though some of the things I’ve tried actually make things worse (when they ought to improve!) so spent a bit of time going back and forwards with the code base!
We’ve found that if the content-length is set in the returned XML (back to the AJAX in MSG block) then this prevents too many open connections building up on the browsing PC. Though I seem to be having problems setting the content length in PHP – if I do (eg):
header(“Content-Length: 100″);
then this just seems to be ignored (even if I send no other headers) – so I’m a bit confused as to what’s going on here. PHP appears to randomly decide whether a response is going to have a content-length or it’s going to have a ‘chunked’ transfer-encoding….
Also would like to arrange some time over the next couple of weeks when we can properly load test the the MSG Block (and MSG itself) and see how it’ll cope (or not!).










