Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-40130 Caching: let make_categories_list use the cache it makes

  • Loading branch information...
commit 1a703d311e7a89a5d760a00e527b8033b72573ba 1 parent e978b66
@brki brki authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  lib/coursecatlib.php
View
3  lib/coursecatlib.php
@@ -1871,9 +1871,6 @@ public static function make_categories_list($requiredcapability = '', $excludeid
// 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;
Please sign in to comment.
Something went wrong with that request. Please try again.