]> git.mjollnir.org Git - moodle.git/commit
categories: Categories page and get_courses_page() - smarter about context
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:08:24 +0000 (07:08 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:08:24 +0000 (07:08 +0000)
commit679b61796766cb85012cd5b71747c4ea5f2c6dc4
tree3cdae25bfb4798bacc12fbbc354a8b4a5a0fff64
parentc1b7a5e537c3adf72d1f502e4f1f43a969b6c5ec
categories: Categories page and get_courses_page() - smarter about context

This patch saves 1600 context lookups on a 1600 course category. rcache
does help a bit with small categories, but on large setups, this is
not sustainable.

And it's not needed either. We have the data right at our fingertips.
Just get it when it's cheap...
course/category.php
lib/datalib.php