Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e629bd3
)
MDL-48036 course: change multilang cache key
author
Heiko Schach
<heiko.schach@helsinki.fi>
Fri, 21 Nov 2014 07:40:45 +0000
(15:40 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 25 Nov 2014 14:34:45 +0000
(14:34 +0000)
lib/coursecatlib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/coursecatlib.php
b/lib/coursecatlib.php
index
12bd43c
..
fca8414
100644
(file)
--- a/
lib/coursecatlib.php
+++ b/
lib/coursecatlib.php
@@
-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
// with requried cap ($thislist).
- $basecachekey = 'catlist';
+ $currentlang = current_language();
+ $basecachekey = $currentlang . '_catlist';
$baselist = $coursecatcache->get($basecachekey);
$thislist = false;
$thiscachekey = null;