• Marina Glancy's avatar
    MDL-38147 Performance improvements to coursecat class: · 15d50fff
    Marina Glancy authored
    - Retrieve and cache only often-used fields of course category
    - Removed function coursecat::get_all_visible() as potentially causing performance issues
    - removed function coursecat::get_all_parents() as ineffective and unnecessary, replaced with get_parents()
    - retrieve all fields from course_categories when unretrieved field is accessed
    
    Also some code improvements:
    - rename functions starting with _ , rename arguments, etc.
    15d50fff