]> git.mjollnir.org Git - moodle.git/commit
admin/modules: Avoid calling rebuild_course_cache()
authormartinlanghoff <martinlanghoff>
Wed, 12 Sep 2007 02:56:50 +0000 (02:56 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 12 Sep 2007 02:56:50 +0000 (02:56 +0000)
commit6b6eea5575bf1bc8b4a4eef2097ec0c63bb2e0a6
tree26769ca960cd98db82bd2ed901a33b091c4fc617
parentd86341924569cccac106c4d269af017757cb6a2d
admin/modules: Avoid calling rebuild_course_cache()

rebuild_course_cache() over all courses is extremely expensive,
not suitable for interactive calling. Better to clear modinfo
and let course/view.php repopulate it as needed.

With this patch we clear out modinfo _only_ for courses affected
by the module we show/hide/delete.
admin/modules.php