MDL-48036 course: change multilang cache key

This commit is contained in:
Heiko Schach 2014-11-21 15:40:45 +08:00 committed by Dan Poltawski
parent e629bd3ff3
commit 000f1488f0

View file

@ -2146,7 +2146,8 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate {
// Check if we cached the complete list of user-accessible category names ($baselist) or list of ids // Check if we cached the complete list of user-accessible category names ($baselist) or list of ids
// with requried cap ($thislist). // with requried cap ($thislist).
$basecachekey = 'catlist'; $currentlang = current_language();
$basecachekey = $currentlang . '_catlist';
$baselist = $coursecatcache->get($basecachekey); $baselist = $coursecatcache->get($basecachekey);
$thislist = false; $thislist = false;
$thiscachekey = null; $thiscachekey = null;