mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-41019 improve language caching
Includes: * no more hacky reloads, everything is written only once and kept until cache reset * lang menu list is now cached in MUC * both string and lang menu caches are compatible with local caches on cluster nodes * config-dist.php cleanup
This commit is contained in:
parent
99a9d8d937
commit
598a82c950
9 changed files with 134 additions and 179 deletions
|
@ -529,8 +529,7 @@ function get_exception_info($ex) {
|
|||
// Remove some absolute paths from message and debugging info.
|
||||
$searches = array();
|
||||
$replaces = array();
|
||||
$cfgnames = array('tempdir', 'cachedir', 'localcachedir', 'themedir',
|
||||
'langmenucachefile', 'langcacheroot', 'dataroot', 'dirroot');
|
||||
$cfgnames = array('tempdir', 'cachedir', 'localcachedir', 'themedir', 'dataroot', 'dirroot');
|
||||
foreach ($cfgnames as $cfgname) {
|
||||
if (property_exists($CFG, $cfgname)) {
|
||||
$searches[] = $CFG->$cfgname;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue