]> git.mjollnir.org Git - moodle.git/commit
lib/setup moodelib: Introducing moodle_request_shutdown()
authormartinlanghoff <martinlanghoff>
Thu, 5 Apr 2007 05:04:06 +0000 (05:04 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 5 Apr 2007 05:04:06 +0000 (05:04 +0000)
commitcf8133c4576130f3f4a788a737492db3d02fb1f6
tree9d34e9660d67f2a6bfb1a6513b203712e5671600
parentf20d7c41af968a3ed24437ec38f96eefeaf83afd
lib/setup moodelib: Introducing moodle_request_shutdown()

Now Moodle will have a 'shutdown_function' function. Right now
registered (and useful) only when running under apache + mod_php.

This initial function checks whether memory usage in this process exceeded
10MiB or $CFG->apachemaxmem (int, in bytes). This is really useful to prevent
using more RAM than we have.
lib/moodlelib.php
lib/setup.php