MDL-38147 Retrieve and cache only often-used fields of course category
event-driven cache purging
MDL-38147 replaced function coursecat::get_all_ids() with coursecat::get_tree()
bug fix in caching contexts
get_children