mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Portal : Caching TWIG templates to improve performances
SVN:trunk[4420]
This commit is contained in:
@@ -73,7 +73,10 @@ $oApp->register(new Combodo\iTop\Portal\Provider\ScopeValidatorServiceProvider()
|
|||||||
'scope_validator.instance_name' => PORTAL_ID
|
'scope_validator.instance_name' => PORTAL_ID
|
||||||
));
|
));
|
||||||
$oApp->register(new Silex\Provider\TwigServiceProvider(), array(
|
$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());
|
$oApp->register(new Silex\Provider\HttpFragmentServiceProvider());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user