MDL-38147 event-driven cache purging for course categories
MDL-38147 replaced function coursecat::get_all_ids() with coursecat::get_tree()
MDL-38147 coursecat: bug fix in caching contexts
get_children