namespace wcf\system\language;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\SystemException;
+use wcf\system\language\LanguageFactory;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
));
}
}
+
+ // reset language cache
+ LanguageFactory::getInstance()->deleteLanguageCache();
}
/**
$languageVariable,
$packageID
));
+
+ // reset language cache
+ LanguageFactory::getInstance()->deleteLanguageCache();
}
/**
<?php
namespace wcf\system\language;
use wcf\data\language\Language;
+use wcf\data\language\LanguageEditor;
use wcf\data\DatabaseObject;
use wcf\system\cache\CacheHandler;
use wcf\system\template\TemplateScriptingCompiler;
// rebuild language cache
$this->clearCache();
}
+
+ /**
+ * Removes language cache and compiled templates.
+ */
+ public function deleteLanguageCache() {
+ LanguageEditor::deleteLanguageFiles();
+ LanguageEditor::deleteCompiledTemplates();
+ }
}