[*] Installer: pre-compile the smarty templates to improve the loading time of first connection

This commit is contained in:
Rémi Gaillard
2013-01-11 18:13:28 +01:00
parent 52a6a67f74
commit 2c855558cd
3 changed files with 64 additions and 0 deletions

View File

@@ -95,6 +95,11 @@ abstract class InstallControllerHttp
final public static function execute()
{
if (Tools::getValue('compile_templates'))
{
require_once (_PS_INSTALL_CONTROLLERS_PATH_.'http/smarty_compile.php');
exit;
}
// Include all controllers
foreach (self::$steps as $step)
{