FIX: Prevent i18n clearing all SS_Caches (fixes #3122)

This commit is contained in:
Loz Calver 2014-05-10 21:37:13 +01:00
parent dd638014a4
commit d012b79cf0

View File

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