MDL-38147 Improvements to caching of course categories, coursecat::get_children(...
authorMarina Glancy <marina@moodle.com>
Thu, 28 Feb 2013 01:29:15 +0000 (12:29 +1100)
committerMarina Glancy <marina@moodle.com>
Mon, 25 Mar 2013 02:23:15 +0000 (13:23 +1100)
commiteabbfa82d3ba42c6c55d59af98a2cfb6a1c1b0c4
treeb4dc1098febbb444f6d7fe880e29ebde9770ce8a
parent15d50fffd8d23696334fb9f7a1fb12896eae1ce6
MDL-38147 Improvements to caching of course categories, coursecat::get_children() improvements

- Course categories caches are purged by event now
- session cache has additional 10 minutes ttl to clear itself and accomodate for permission changes that do not trigger event purging
- additional request-level cache for coursecat::get()
- We store only children of one category in one cache key
- Function coursecat::get_children() can return results sorted and/or paginated. Added tests
course/lib.php
course/manage.php
lang/en/cache.php
lib/coursecatlib.php
lib/datalib.php
lib/db/caches.php
lib/tests/coursecatlib_test.php