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:
Ingo Schommer 2014-05-12 08:14:58 +12:00
commit 21fef41c3f

View File

@ -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