stable
Clone or download
Read-only
request #12945 Legacy language file cache should use VarExporter
8a0b6da02f changed the way language files were cached and loaded due to concurrency issues. From what we can observe with recent caching stuff (front router cache, new hooks) the concurrency issues doesn't seems to be a real problem anymore (even if the correponding php bug is still open). The ~2MB of RAM save on each request is worth another try. It also gives a nice speed-up of ~8% on pages like homepage. Change-Id: I47c9183913c127f7d8eb97e9b9ae7b849bc8f4fd
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/language/BaseLanguage.class.php | +11 | −42 | Go to diff View file |
A | tests/phpunit/common/language/BaseLanguageTest.php | +294 | −0 | Go to diff View file |
R | tests/simpletest/common/language/_fixtures/etc/plugins/toto/site-content/en_US/.gitkeep | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/etc/site-content/ja_JP/ja_JP.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/extra_path/bla/site-content/en_US/.gitkeep | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/plugins/toto/site-content/en_US/toto.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/common.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/empty-lines.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/en_US.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/file.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/include.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/en_US/only-comments.tab | Go to diff View file | ||
R | tests/simpletest/common/language/_fixtures/codendi/site-content/fr_FR/fr_FR.tab | Go to diff View file | ||
D | tests/simpletest/common/language/BaseLanguageTest.php | +0 | −283 | Go to diff View file |