mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 22:58:24 +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) {
|
public static function include_by_locale($locale, $clean = false) {
|
||||||
if($clean) {
|
if($clean) {
|
||||||
$cache = Zend_Translate::getCache();
|
Zend_Translate::clearCache();
|
||||||
if($cache) $cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get list of module => path pairs, and then just the names
|
// Get list of module => path pairs, and then just the names
|
||||||
|
Loading…
Reference in New Issue
Block a user