Portal : Caching TWIG templates to improve performances

SVN:trunk[4420]
This commit is contained in:
Guillaume Lajarige
2016-09-27 12:29:25 +00:00
parent f9a984f3e4
commit 954ba60611

View File

@@ -73,7 +73,10 @@ $oApp->register(new Combodo\iTop\Portal\Provider\ScopeValidatorServiceProvider()
'scope_validator.instance_name' => PORTAL_ID
));
$oApp->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => MODULESROOT
'twig.path' => MODULESROOT,
'twig.options' => array(
'cache' => utils::GetCachePath() . 'twig/'
)
));
$oApp->register(new Silex\Provider\HttpFragmentServiceProvider());