I'm writing a new enrolment plug-in based on the database enrolment plugin. I may or may not keep the calls:
- core_php_time_limit::raise();
- raise_memory_limit(MEMORY_HUGE);
If I keep them, do I need to restore them to their original values after my scheduled task is complete? Or does that happen automatically? If I need to restore the original values, how do I do that without setting them to an explicit value?