Merge branch 'mdl26dev-MDL-40130-let-course-category-caching-be-used' of git://github.com/brki/moodle

This commit is contained in:
Sam Hemelryk 2013-06-24 11:44:20 +12:00
commit f8dcecfd07

View file

@ -1871,9 +1871,6 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
// Check if we cached the complete list of user-accessible category names ($baselist) or list of ids with requried cap ($thislist). // Check if we cached the complete list of user-accessible category names ($baselist) or list of ids with requried cap ($thislist).
$basecachekey = 'catlist'; $basecachekey = 'catlist';
$baselist = $coursecatcache->get($basecachekey); $baselist = $coursecatcache->get($basecachekey);
if ($baselist !== false) {
$baselist = false;
}
$thislist = false; $thislist = false;
if (!empty($requiredcapability)) { if (!empty($requiredcapability)) {
$requiredcapability = (array)$requiredcapability; $requiredcapability = (array)$requiredcapability;