Merge branch 'mdl26dev-MDL-40130-let-course-category-caching-be-used' of git://github.com/brki/moodle
This commit is contained in:
@@ -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).
|
||||
$basecachekey = 'catlist';
|
||||
$baselist = $coursecatcache->get($basecachekey);
|
||||
if ($baselist !== false) {
|
||||
$baselist = false;
|
||||
}
|
||||
$thislist = false;
|
||||
if (!empty($requiredcapability)) {
|
||||
$requiredcapability = (array)$requiredcapability;
|
||||
|
||||
Reference in New Issue
Block a user