From 000f1488f0bb32c84f5a9dc0d0bebe94361a3833 Mon Sep 17 00:00:00 2001 From: Heiko Schach Date: Fri, 21 Nov 2014 15:40:45 +0800 Subject: [PATCH] MDL-48036 course: change multilang cache key --- lib/coursecatlib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/coursecatlib.php b/lib/coursecatlib.php index 12bd43c664d9c..fca841499fbfb 100644 --- a/lib/coursecatlib.php +++ b/lib/coursecatlib.php @@ -2146,7 +2146,8 @@ 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'; + $currentlang = current_language(); + $basecachekey = $currentlang . '_catlist'; $baselist = $coursecatcache->get($basecachekey); $thislist = false; $thiscachekey = null;