mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-48036 course: change multilang cache key
This commit is contained in:
parent
e629bd3ff3
commit
000f1488f0
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue