Permalink
Browse files

MDL-38147 Performance improvements to coursecat class:

- 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.
  • Loading branch information...
1 parent e1d5456 commit 15d50fffd8d23696334fb9f7a1fb12896eae1ce6 @marinaglancy marinaglancy committed Feb 27, 2013
Showing with 98 additions and 108 deletions.
  1. +94 −104 lib/coursecatlib.php
  2. +1 −1 lib/db/caches.php
  3. +3 −3 lib/tests/coursecatlib_test.php
Oops, something went wrong.

0 comments on commit 15d50ff

Please sign in to comment.