fmarier 9bb19e5827 course/lib: Cache get_categories() using a static variable (MDL-11938)
Some recursive functions call get_categories() repeatedly to get all of the
child categories of the current one.

This commit create a lazily-initialized cache of all of the categories so
that the database is only queried once to retrieve all of the categories.

It speeds up the both the homepage and the course edit page (where the
categories are displayed in combo boxes).
2007-12-17 04:49:27 +00:00
..
2007-11-19 07:13:02 +00:00
2006-11-22 07:36:41 +00:00
2007-10-09 12:49:54 +00:00
2007-11-21 16:30:25 +00:00