Permalink
Browse files

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

  • Loading branch information...
brki committed Jun 21, 2013
1 parent 0ea1fbb commit b04f84bc80b346ce0bea64d0b2c65f3fc9baf2e8
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/coursecatlib.php
View
@@ -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;

0 comments on commit b04f84b

Please sign in to comment.