Skip to content
Browse files

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

  • Loading branch information...
1 parent e978b66 commit 1a703d311e7a89a5d760a00e527b8033b72573ba @brki brki committed Jun 21, 2013
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;

0 comments on commit 1a703d3

Please sign in to comment.
Something went wrong with that request. Please try again.