mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3124 from kinglozzer/pulls/3122-translate-cache-cleaning
FIX: Prevent i18n clearing all SS_Caches (fixes #3122)
This commit is contained in:
commit
21fef41c3f
@ -2514,8 +2514,7 @@ class i18n extends Object implements TemplateGlobalProvider {
|
||||
*/
|
||||
public static function include_by_locale($locale, $clean = false) {
|
||||
if($clean) {
|
||||
$cache = Zend_Translate::getCache();
|
||||
if($cache) $cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
||||
Zend_Translate::clearCache();
|
||||
}
|
||||
|
||||
// Get list of module => path pairs, and then just the names
|
||||
|
Loading…
Reference in New Issue
Block a user