Rigel Kentaurus
Well-known member
The following code snippet will "force" to recompile all templates and phrases
For phrases (change languageId to yours)
For templates
If you just need to run it for whatever reason you could add it in index.php just before fc->run() (or create a separate file, or add it to a code event)
For phrases (change languageId to yours)
Code:
$p = new XenForo_Model_Phrase();
$p->compileAllPhrasesInLanguage(1);
For templates
Code:
$t = new XenForo_Model_Template();
$t->compileAllTemplates();
If you just need to run it for whatever reason you could add it in index.php just before fc->run() (or create a separate file, or add it to a code event)