Please sign in to comment.
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.
- Loading branch information...
Showing with 29 additions and 0 deletions.